Post

Replies

Boosts

Views

Activity

Silent Push not received when app is in background / dismissed iOS 14.4
I am using FCM with APNS to send Push notifications to my iOS app. I am getting notifications in all modes (foreground, background and dismissed) when app is deployed from Xcode (Xcode version 12.4, iOS version : 14.4). However, issue is when app is downloaded from the Store, I am able to receive the push in foreground but not when app gets dismissed. Here’s what I am doing : I have changed the key value for aps environment to production in the entitlements file All the process to configure push notifications such as adding capabilities for push notifications and configuring them in app delegate along with firebase configuration is done Whenever push is received,  I am showing local notifications to the user. Here's my payload info : let mesg = {                 registration_ids: iosIds,                 data: {                     commentId: commentId,                     userId: userid,                     comment: comment,                     projectId: projectId,                     projectName: projectName,                     commentType: commentType.toString(),                     userName: userName,                     type: '1'                 },                 apns: {                     headers: {                         "apns-priority": 5,                     },                     payload: {                         aps: {                             "content-available": 1,                             alert: ""                         }                     }                 },                 content_available: true,                 priority: 'high',                 "apns-priority": 5,             } let option = {                 method: 'POST',                 url: 'https:///fcm/send',                 headers: {                     'Content-Type': 'application/json',                     'Authorization': 'key=' + functions.config().auth.key                 },                 body: JSON.stringify(mesg)             } Please can anyone assist me regarding the same.
1
0
6.3k
Apr ’21
Not able to debug notification service extensions
Hi, I am using iOS service extensions to modify notification content. I did all the process required to configure the extension. My extension methods don't get called when I try sending push. Also, debugger doesn't get attached to the service extension : here's my check list : Deployment target for both app and service extensions are same i.e., iOS 14.4 I tried : Setting breakpoint in the extension Select Debug / Attach to Process by PID or name Entered the name of the extension target Triggered the push notification (still no luck) payload format : let mesg = {                 notification: {                     title: "New  Message",                     body: "You have new message"                 },                 data: {                     commentId: commentId,                     userId: userid,                     comment: comment,                     projectId: projectId,                 },                 apns: {                     payload: {                         aps: {                             "mutable-content": 1,                             alert: ""                         }                     }                 },                 content_available: true,                 priority: 'high',             } Also, I have made sure that extension is linked under the dependencies and Embedded App Extensions Can anyone please guide me. Any help would be appreciated.
0
0
843
Apr ’21