Skip to content

[Bug]: Some Android devices doesn't get OneSignalId and SubscriptionId #1840

@Tebrynn

Description

@Tebrynn

What happened?

I installed latest version now 5.2.13 and i'll try but i had 5.2.8
These two lines, only on some random android, doesn't return a value or it's empty:
const oneSignalId = await OneSignal.User.getOnesignalId(); const subscriptionId = await OneSignal.User.pushSubscription.getIdAsync();

Here's a list of some devices i checked:
OPPO A78
A23
Samsung A52
realme 14 Pro 5G

Steps to reproduce?

1. Setup OneSignal app id
2. Try to get id

What did you expect to happen?

Return OnesignalID and SubscriptionId

React Native OneSignal SDK version

5.2.8

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

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