Skip to content
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]: OneSignalId and SubscriptionId not refreshed when initalizing #2227

Open
1 task done
jmonloop opened this issue Dec 5, 2024 · 1 comment
Open
1 task done

Comments

@jmonloop
Copy link

jmonloop commented Dec 5, 2024

How can we help?

Hello,
I have an Ionic app where push notifications work fine most of the time. However there's a certain scenario where users stop receiving push notifications when they install the app for the first time.

When it happens, oneSignalId and subscriptionId are always the same one after calling OneSignal.initialize(ONE_SIGNAL_APP_ID). I mean they are specific ones always for the first time oneSignal is initialized after the app is installed.

The curious thing is if you kill the app and restart it again, the ids change to new ones and then push notifications back to work.
I'm using the device-scoped user approach, if that helps.

I'm not sure if this is a bug or just a wrong usage, that's why I posted it as a question.
Thanks in advance!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jinliu9508
Copy link
Contributor

Hello @jmonloop, could you share the version of the SDK you are using and how you use OneSignal? I think this issue might be related to a specific usage and I couldn't reproduce notification not being received after fresh install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants