Skip to content

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

Description

@mostfinance-ca

What happened?

Library try to login with previous failed externaId.

What I did?

  • OneSignal.login(ExternalID), where ExternalID has reached user_subscription_limit
  • I getting
{
  "errors": [
    {
      "code": "subscription-1",
      "title": "Operation is not permitted due to user having the maximum number of subscriptions assigned",
      "meta": {
        "user_subscription_limit": 20
      }
    }
  ]
}
  • Invoking OneSignal.logout()
  • trying login with any new ExternalId but library don't make api calls
  • restarting application
  • Invoking OneSignal.initWithContext and library make api calls (login) with previous ExternalID

This loop is infinity.

Steps to reproduce?

- Login with ExternalID that has reached user_subscription_limit
- Call Logout method
- Login with any ExternalID

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

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":20}}]}

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions