OneSignal / OneSignal-Android-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native Android or Amazon app with OneSignal. https://onesignal.com
Other
592 stars 368 forks source link

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

Open areehafarooq opened 2 weeks ago

areehafarooq commented 2 weeks ago

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

jfishman1 commented 2 weeks ago

Please contact support@onesignal.com with your app ID, the subscription ID and external ID. We can help resolve this for you.