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
{{ message }}
Repository navigation
[Bug]: User Status details: Permission Not Granted #823
When you give consent for the first time, the status is Permission Not Granted. If you revoke consent and give it a second time, the bug is fixed
Happens only on Android 13+ devices.
Steps to reproduce?
1. Install OneSignal 5.1.15
2. Trigger the Android 13+ notification permission prompt using
var request = new PermissionRequest(); from Unity.Notifications.Android
3. Grant permission when the system dialog appears
Confirmation Scenario:
1. Go to the device's settings, revoke the notification permission, and relaunch the app.
2. Grant permission again
What did you expect to happen?
I expected the user status to be "Subscribed"
Unity version
2022.3.62f2
OneSignal Unity SDK version
5.1.15
Platform
Android
Relevant log output
1. FAILING LOG (First launch, permission granted mid-session)
This log shows that right after initialization, both OneSignalId and the SubscriptionToken are missing.
[OneSignalService] Init
...
[UnityMobileNotificationsService] InitNotifications // This triggers the prompt
...
// User grants permission
...
// The crucial log line showing the failure:
[NotificationsManager] OneSignalID: null, ExternalID: 2500128, SubscriptionId: 40437d3d-12de-438a-9a11-7c48ee5b0b48, SubscriptionToken:
2. SUCCESSFUL LOG (Second launch, after revoking and re-granting permission)
This log shows that on a subsequent launch where the prompt is also shown at startup, the SDK successfully subscribes the user.
[OneSignalService] Init
...
[UnityMobileNotificationsService] InitNotifications // This triggers the prompt
...
// User grants permission
...
// The crucial log line showing success:
[NotificationsManager] OneSignalID: 36dd6ede-fbb2-42f7-9ec7-64d6003ca231, ExternalID: 2500121, SubscriptionId: 0453c128-df78-4d82-9421-ee10d85ba0d4, SubscriptionToken: eYgL32tkTqSiQBdCpsO1vE:[...]
Thanks for the report. Unity SDK 5.1.15 includes OneSignal Android SDK 5.1.37, which had known timing issues where a push subscription could remain in NO_PERMISSION / “Permission Not Granted” after permission changes.
Please update to the latest Unity SDK and request Android 13+ notification permission through: await OneSignal.Notifications.RequestPermissionAsync(true);
instead of Unity.Notifications.Android.PermissionRequest, so the native OneSignal SDK receives the permission callback and can refresh the push token/subscription.
This should be covered by newer Android SDK updates, including the startup token refresh fix from OneSignal-Android-SDK#2622. If this still reproduces on the latest Unity SDK, please share verbose OneSignal logs from first install through permission grant.
Activity
fadi-george commentedon Jun 12, 2026
Thanks for the report. Unity SDK 5.1.15 includes OneSignal Android SDK 5.1.37, which had known timing issues where a push subscription could remain in
NO_PERMISSION/ “Permission Not Granted” after permission changes.Please update to the latest Unity SDK and request Android 13+ notification permission through:
await OneSignal.Notifications.RequestPermissionAsync(true);instead of
Unity.Notifications.Android.PermissionRequest, so the native OneSignal SDK receives the permission callback and can refresh the push token/subscription.This should be covered by newer Android SDK updates, including the startup token refresh fix from OneSignal-Android-SDK#2622. If this still reproduces on the latest Unity SDK, please share verbose OneSignal logs from first install through permission grant.