Skip to content

[Bug]: 5.1.38 - Most Android users cannot subscribe to push notifications with "Never Subscribed" or "Permission Not Granted" status #2418

@tddevel

Description

@tddevel

What happened?

Most users are shown as "Never Subscribed" on the Audience page, while their individual subscription pages display "Status details: Permission Not Granted". This happens even though the notification permission prompt is shown and accepted.
Some users do obtain "Subscribed" status, but I do not see any clear pattern: they use different Android versions, devices, etc. This looks similar to #2106.

Steps to reproduce?

* Create a new Android app and integrate the OneSignal Android SDK
* Initialize OneSignal in the main Activity using the standard setup from the documentation
* Install the app and launch it, allow push notifications in popup (if needed)

What did you expect to happen?

Test device must appear in the OneSignal dashboard as "Subscribed"

OneSignal Android SDK version

5.1.37, 5.1.38

Android version

11

Specific Android models

In production, I see that all devices and Android versions are affected. Some examples:
* OnePlus BE2029 (Android 11)
* Redmi Note 10 2022 (Android 13)
* Samsung Galaxy Z Flip5 (Android 16)

Relevant log output

[OpRepo] processQueueForever:ops: [
bucket:0, retries:0, operation:{"name":"create-subscription","appId":"83..52","onesignalId":"d4..80","subscriptionId":"4b..ff","type":"PUSH","enabled":false,"address":"","status":"NO_PERMISSION","id":"5c..d8"},

bucket:1, retries:0, operation:{"name":"update-subscription","appId":"83..52","onesignalId":"d4..80","subscriptionId":"4b..ff","type":"PUSH","enabled":false,"address":"dZ...ZA","status":"NO_PERMISSION","id":"c3..01"},

bucket:1, retries:0, operation:{"name":"update-subscription","appId":"83..52","onesignalId":"d4..80","subscriptionId":"4b..ff","type":"PUSH","enabled":true,"address":"dZ...ZA","status":"SUBSCRIBED","id":"76..67"}
]

[OpRepo] SubscriptionOperationExecutor(operations: [{"name":"create-subscription","appId":"83..52","onesignalId":"d4..80","subscriptionId":"4b..ff","type":"PUSH","enabled":false,"address":"","status":"NO_PERMISSION","id":"5c..d8"}, {"name":"update-subscription","appId":"83..52","onesignalId":"d4...80","subscriptionId":"4b..ff","type":"PUSH","enabled":false,"address":"dZ..ZA","status":"NO_PERMISSION","id":"c3...01"}, {"name":"update-subscription","appId":"83..52","onesignalId":"d4..80","subscriptionId":"4b..ff","type":"PUSH","enabled":true,"address":"dZ..ZA","status":"SUBSCRIBED","id":"76..67"}])

[DefaultDispatcher-worker-3] HttpClient: Request Sent = POST https://api.onesignal.com/apps/83..52/users/by/onesignal_id/d4..80/subscriptions - Body: {"subscription":{"id":"4b..ff","type":"AndroidPush","token":"dZ..ZA","enabled":true,"notification_types":1,"sdk":"050138","device_model":"BE2029","device_os":"11","rooted":true,"net_type":0,"app_version":"1"}} - Headers: Accept=[application/vnd.onesignal.v1+json], Content-Type=[application/json; charset=UTF-8], OneSignal-Install-Id=[38..00], OneSignal-Subscription-Id=[4b..ff], SDK-Version=[onesignal/android/050138]

[DefaultDispatcher-worker-3] HttpClient: Got Response = POST https://api.onesignal.com/apps/83..52/users/by/onesignal_id/d4..80/subscriptions - STATUS: 200 - Body: {}

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions