OneSignal-Android-SDK icon indicating copy to clipboard operation
OneSignal-Android-SDK copied to clipboard

[Bug]: Unable to login to any other external id once user_subscription_limit has reached on previous external id

Open areehafarooq opened this issue 1 year ago • 1 comments

What happened?

External id is not getting updated against subscription id for a specific case. If OneSignal.login is called for an external id against which user subscription limit has reached then after that logging to any other external id does not work as well. It fails with the same error POST - STATUS: 409 - Body: {"errors":[{"code":"subscription-1","title":"Operation is not permitted due to user having the maximum number of subscriptions assigned","meta":{"user_subscription_limit":200}}]} although no subscription exists against the new external id.

Steps to reproduce?

1. Call OneSignal.login with user id that has reached max user subscription limit.
2. Call OneSignal.login with any other user id that has no subscriptions.

What did you expect to happen?

I expected external id to update.

OneSignal Android SDK version

Release 5.1.13

Android version

13

Specific Android models

No response

Relevant log output

HttpClient: Got Response = POST - STATUS: 409 - Body: {"errors":[{"code":"subscription-1","title":"Operation is not permitted due to user having the maximum number of subscriptions assigned","meta":{"user_subscription_limit":200}}]}

Code of Conduct

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

areehafarooq avatar Jun 13 '24 16:06 areehafarooq

Please contact [email protected] with your app ID, the subscription ID and external ID. We can help resolve this for you.

jfishman1 avatar Jun 14 '24 21:06 jfishman1

@jfishman1 @jkasten2 Same issue found on com.onesignal:OneSignal:5.1.17...Please give proper solution

sw-tt-jigarkumarpatel avatar Jul 24 '24 06:07 sw-tt-jigarkumarpatel

@sw-tt-jigarkumarpatel See this comment for the current solution and what is planned for the future: https://github.com/OneSignal/OneSignal-Android-SDK/issues/2143#issuecomment-2218710776

jkasten2 avatar Jul 24 '24 22:07 jkasten2

@jkasten2 Is there a better solution than contacting you support?

sahil-devinci avatar Aug 19 '24 02:08 sahil-devinci