Open mostfinance-ca opened 2 months ago
@mostfinance-ca Thanks for reaching out. Each time you uninstall and reinstall the app all data is lost for the app. The OneSignal SDK doesn't know this is the same device so a new push subscription is created.
It unlikely a legitimate end-user would do this 20 times, however it possible it could happen. In this case you would have to clean up the older subscriptions by deleting them. This could be done via the OneSignal DELETE /subscriptions REST API if this comes up in the real world.
We are looking into removing older push subscription automatically so this extra integration step won't be needed in the future.
@jkasten2
External_ID
and tries to repeat the login operation again and again. Even after restarting the application. On iOS, a NEW External_ID
is inserted into the request every time when I call OneSignal.login method@mostfinance-ca sorry I misunderstood the issue you are seeing, this is bug then. Just to confirm the steps:
OneSignal.login("A")
user_subscription_limit
error.OneSignal.login("B")
@jkasten2 That's right, I confirm these steps.
What happened?
Library try to login with previous failed externaId.
What I did?
OneSignal.login(
ExternalID
), whereExternalID
has reached user_subscription_limitI getting
Invoking OneSignal.logout()
trying login with any
new ExternalId
but library don't make api callsrestarting application
Invoking OneSignal.initWithContext and library make api calls (login) with previous
ExternalID
This loop is infinity.
Steps to reproduce?
What did you expect to happen?
I expected the external id to update. Because it works well on iOS!
OneSignal Android SDK version
5.1.17
Android version
13
Specific Android models
No response
Relevant log output
Code of Conduct