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

[Bug]: Cannot set tags and external id to the user sometimes #2234

Open
1 task done
bundleberk opened this issue Dec 16, 2024 · 1 comment
Open
1 task done

[Bug]: Cannot set tags and external id to the user sometimes #2234

bundleberk opened this issue Dec 16, 2024 · 1 comment

Comments

@bundleberk
Copy link

bundleberk commented Dec 16, 2024

What happened?

When I try to call OneSignal.Login and addTags methods I get this error for the operation named "login-user" on the logs sometimes:

POST - STATUS: 400 - Body: {"errors":[{"code":"user-3","title":"Creating a User requires at least one Alias or Subscription"}]}

when I check the subscription with the subscription id on onesignal panel, I see that there is a subscription with the state "never subscribed" and even if I allowed the notifications I see the "permission not granted" tag.

Screenshot 2024-12-16 at 23 59 34

also it seems that the subscription cannot be created after closing and reopening the app.

Steps to reproduce?

1- Run the app.
2- Call Onesignal.Login and addTags()

What did you expect to happen?

I expect to set the data tags and the external id successfully.

OneSignal Android SDK version

Release 5.1.15

Android version

15, 14, 13, 12, 11, 10

Specific Android models

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bundleberk bundleberk changed the title [Bug]: Cannot set tags and external id to the user on sdk 5.1.15 sometimes [Bug]: Cannot set tags and external id to the user sometimes Dec 16, 2024
@jinliu9508
Copy link
Contributor

Hello @bundleberk, this issue could be the result of a known bug in our 5.2.0-beta version if the OneSignal SDK version is set to [5.0.0, 5.99.99]. I recommend setting the version to [5.0.0, 5.1.99] to avoid an unintended upgrade to the beta version. Please let us know if the problem persists after making this change.

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