简体   繁体   中英

What happens when Push Notification is turned off ? Will code be executed (minus UI)?

Customers can turn off push notifications at the app level. When that happens, we all know the the notification tray UI will not show up. But,

  • Does GCM/FCM (android) and APNS (iOS) continue to deliver notification to the customer's phone regardless ?

  • Specifically, on android & iOS, will I be able to execute some logic in the push event listener regardless of whether the user turned the push notifications on/off ?

  • In Android, when we disable push notifications, does the OS automatically unregister the app from GCM/FCM ?

Note: I am NOT interested in background app refresh on iOS or background refresh through WorkManager on Android. I am NOT interested in iOS silent notifications or other kinds of Background Executions.

My question is specifically whether the code block is invoked (or not) when push notifications are turned off at app level (using the toggle).

I am not sure about the android, but in iOS this thing is possible.

You can do this but just keep in mind, that Background App Refresh is enable in device.

For more details, look into this link

https://www.urbanairship.com/blog/watch-list-ios-8-opt-in-changes

I hope you get your answer from above link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM