-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silent push while user disabled PN settings? #302
Comments
@tinder-sgong The SDK does not have an option to keep the device subscribed to OneSignal if notification permission were declined at this time. One solution that would work today if is if you created a 2nd OneSignal app to register the pushTokens with. You can get it the token from the For SDK support, I believe we can add a |
(lol used wrong account to ask the question) |
@hyouuu The solution I noted is more of a current work around you can use today. I can expanded a bit more SDK modifications I suggested above. By default the device should not be marked as subscribed if the user did not accept notifications. However for the silent notification use case apps who need to support this could add a I won't be able to get to this feature anytime soon however I would be open to reviewing a pull request implementing the above. |
Thanks for the elaborations @jkasten2 ! |
Hello, Has this been solved yet? |
@jkasten2 any update on this one? |
Closing issue. Note: request still under consideration EDIT: you should use VOIP here |
Does this mean OneSignal is not considering adding silent push support? VOIP is not the answer as the majority of apps are not VOIP apps by nature. |
Limitations of content-available
Recommendations1. Let users know what is new / availableMost of the time you will want to display a notification, this way users know there is new information available in your app and should check it out. 2. Non-Interruptive NotificationsDepending on your app and use case you may want to enable Provisional / Direct-To-History push notifications by default so users silently get notifications shown to the notification center. These don't show as a banner or buzz the phone so they won't interrupt the user. Also iOS does NOT require the user to be prompted for this Provisional / Direct-To-History notification permission since they are silently added to the notification center. 3.
|
Thanks for the elaborations @jkasten2 ! My goal is to send visible notifications with data payload so as the users see a notification, new data is available to the app at the same time so that: 1. The app badge is updated as well, 2. When user opens the app they can get the new data immediately. This fits your recommendation #1. However, the reason why I opened the issue in the first place is that when user taps disallow when the app prompts for PN, I still want to be able to send data to the app so it can update badge & data, but OneSignal would treat them as unsubscribed and not send anything to the app currently. Just got to know #2 for iOS 12 - if that box is checked, would it work as a fallback automatically if I still ask PN permission and users disallow it? And if user allows PN then they will send as normal? For #3, it seems like even if the app is still running in background, it won't be able to read data from the PN because only the |
@hyouuu To set badge values the user has to accept the notification prompt, or they have to turn on badges on for your app in iOS Settings if you haven't prompted or declined the prompt. For 2. no, if you decide to prompt for notifications and they decline then they will be marked as unsubscribed since this will remove even the Direct-To-History permission. Before showing the iOS native prompt you can pre-prompt with your own custom dialog to, this way if they decline your custom prompt it won't opt them out of the Direct-To-History permission. For 3. both |
Thanks again @jkasten2 ! Regarding #3, I saw Apple's doc noted |
Let's say i have a transaction page and a user makes a transaction with push notifications turned off, it looks awkward when the page doesn't update to notify that the transaction has taken place. We do send an sms to keep a record. In our case we don't need to send an alert notification nor wake the app up as an sms has been sent already and the page gets refreshed in case when the user reopens the app, but we would like to keep the app updated too incase the user is looking at the screen. Silent push notifications seems to be the best option for us because even if you disable app background refresh and disable allow notifications, you can still receive silent notifications if your app is in FOREGROUND. |
@jkasten2 I came across a similar situation as @silentninja. I wanted to send notification for new content updates on a list view, using sockets for a single page seemed like a overkill so i thought of using silent push and encountered this issue. An alternate way would be to send notification overriding the subscription status. |
Couldn't find it documented so asking here - according to this SO answer OneSignal wasn't able to deliver silent push if user disabled PN settings, although iOS allows it (https://stackoverflow.com/questions/36250931/how-to-send-a-silent-push-notification-if-the-user-disables-them)
Has this been changed? If not, could we make it so that silent pushes ignore PN settings?
I'm trying to use silent push to notify clients for data updates so this is a critical feature. Thanks!
The text was updated successfully, but these errors were encountered: