You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to know what is the proper way to opt in/out when provisional push notifications are activated.
Once user opts out and then opts in user sees native push notification permission request which is not the good UX. I'd like user to remain on provisional permission after opting in.
I've tried to run optIn via rest api (to avoid having permission popup) but get an error: {"errors":[{"code":"subscription-7","title":"Subscription can't be enabled due to an error reported by the SDK. Check notification_type value for a specific reason code"}]}%
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
hi @nan-li
Thanks for the reply.
I opt out user programmatically when user logs out. In this case I don't want user to receive push notification since there is no user at this moment. And then when user logs in again I programmatically opt user in and expect SDK to continue in provisional mode. I request full permission later on during "happy moment" when user performs app's main feature successfully. I don't want to request full permission upon logging in.
Hope this helped to understand the problem better
@nan-li yes the sending logic takes userId into account for sure. The problem in this scenario is more about user receiving full permission request alert upon login after logout.
How can we help?
I'd like to know what is the proper way to opt in/out when provisional push notifications are activated.
Once user opts out and then opts in user sees native push notification permission request which is not the good UX. I'd like user to remain on provisional permission after opting in.
I've tried to run optIn via rest api (to avoid having permission popup) but get an error:
{"errors":[{"code":"subscription-7","title":"Subscription can't be enabled due to an error reported by the SDK. Check notification_type value for a specific reason code"}]}
%Code of Conduct
The text was updated successfully, but these errors were encountered: