-
Notifications
You must be signed in to change notification settings - Fork 370
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
[question]: Permission not granted after optIn #1824
Comments
Hi @MarianoManzi thanks for reaching out! I have not been able to reproduce this issue. Would you be able to provide the logs from the device so we can take a closer look? Thanks! |
Hi @jennantilla, thanks for the answer. I try to give you more information. So when I call the optIn function I get the error:
|
Hi @MarianoManzi, did you ever resolve this? It might be related, but I seem to be having a similar issue but with the react-native-onesignal package and it's only on Android. |
I can confirm the same issue. |
Hi @RickRedSix unfortunally not |
Have similar problem on Amazon Fire HD 10 device. But there is no problem on simple android devices. @MarianoManzi did you resolve this problem? |
Hi @excasualdev nothing yet, I suggest you follow also the issue opened by @RickRedSix a few week ago |
Hi, i've the same issue {"errors":[{"code":"subscription-10","title":"Subscription can't change notification_types to positive integer while disabled"}]} @MarianoManzi did you resolve this problem? |
Hi @gvalenza, unfortunally nothing, for now i'm sticking with the old release |
@MarianoManzi what version are you using? |
@gvalenza I'm having this issue since upgrading to the major release 5.0, now I've rolled back to the 4. |
Still experiencing the same issue with v5.0.4 |
Hi @MarianoManzi, Thanks for sharing your logs. I am interested in this line:
The SDK sent an update to the server. Is this logged right after you call It shows that the "address" is empty, which means there is no push token, or no push token YET. That is why this error response is received upon trying to optIn. Does this happen often in your testing? You can check for the push token with |
Hello everyone! Just an update that this was fixed in 5.1.1 of our SDK. Please update to this version and let us know if you are having any additional issues. Thanks! |
I have updated to 5.1.1, but the issue remains.
|
try to add firebase messaging to your dependencies, helped us to fix this error:
|
This did the trick for me. Thanks |
Similar to the other posts, adding the following line to my build.gradle's dependencies section solved the issue: |
Hi @jgalindosl, what version of
Hi @ramirezi29, were you seeing the exact same error about "Subscription can't change notification_types to positive integer while disabled" or a different issue? Noting that the OneSignal Android SDK already includes a dependency to |
For me
did the trick @nan-li |
Thank you for following up @jgalindosl I appreciate the details. |
We have been having this same issue with OneSignalFlutter 5.1.0 version. |
They say they send permissions automatically, but unfortunately it needs to be turned on from the device settings. They think I need to access each user's device. |
How can we help?
In my app i have a switch to enable and disable notifications the following is the listner on the switch:
The problem is that when i call
OneSignal.User.pushSubscription.optIn()
, even ifOneSignal.Notifications.permission
is true the OneSignal console tells me thet the user hasn't granted the permission.The
OneSignal.User.pushSubscription.optOut()
work as expected.Code of Conduct
The text was updated successfully, but these errors were encountered: