Is Silent Remote Notifications possible if user has disabled push for the app?

后端 未结 3 1815
-上瘾入骨i
-上瘾入骨i 2020-11-29 02:51

In my settings tabbar:

  1. I have a feature specific switch which can be turned OFF or ON based on API response.
  2. From website only admin is authorized to
3条回答
  •  时光说笑
    2020-11-29 03:16

    Other answers are good. But they are not official answers.

    The official answer is in What's New in Notifications WWDC 2015 video:

    Silent notifications are enabled by default. The user does not need to approve your -- does not give permission to your app to use them, and you can just start using them without asking the user for permission. But silent notifications are the mechanism behind background app refresh. At any point you know that the user can go in settings and disable them. So you can't depend on them always being available. You don't know if the user the turn them off, and you are not getting a notification anymore. This also means that silent notifications are delivered with the best effort. That means that when the notification arrives on the user's device, the system is going to make some choices.

    For more see this image and this answer

提交回复
热议问题