Post

Replies

Boosts

Views

Activity

Keep ios app running in background forever
The story is the ios app, that I'm working on using react native, needs to keep running in background to receive silent notifications from the Backend then it will schedule local notifications using data from those silent notifications received. Actually, in native code (objC), i'm using ios background modes listening for receiving remote notifications event to receive the silent notification while app in fore/background. I also tried the BGTaskRefresh (available from iOS 13+). It seems working fine if the app in fore/background. However, if the user swipes the app up in app switcher (a.k. force quit/kill the app), it stopped working. So, please advise how to achieve the above feature. Or is there a way for the app to keep receving the silent notification and trigger didReceiveRemoteNotification method (appDelegate.m) even if it's kill or terminated by user/system?
6
0
8.1k
Jun ’21
Application for Notification Serivce extension filtering entitlement rejected
Hi, I sent a request to use Notification Serivce extension filtering entitlement for my app as below info but it was rejected. My app needs to receive silent notification from backend even when it's forced quit (and/or reboot the phone). Once it received the silent notification from iOS notification service extension, it will schedule a local notification on user iPhone to show up at a specific time. For now, other APIs can’t support for this functionality, especially to support receiving the silent notification when app is forced quit (mentioned above). Regarding above behavior, when the app receives the silent notification, the notification itself needs to include the title/body in its payload, in order to trigger the didReceive method in the app's notification service extension. So we need to add a token-like title/body text (e.g, "[[silent_notification]]") for it to trigger the didReceive method. However, showing this token-like title/body to the end-user doesn't make sense. So, we need to hide this trigger notification from the end-user, so they will only get the scheduled local notification at the specified time. That’s why we need to get this entitlements so the didReceive method can be able to hide it, otherwise it will show the original notification to end-user. My extension only runs when it receive the silent notification sent from backend to wake up the extension & schedule the local notification. My app's notification service extension can only be triggered when it receives the silent push notification from backend and the app is running in the background or forced quit. Please advise !
1
0
1.1k
Jul ’21