Skip to content

[Bug]: Tags are desynced when restarting the app (android only) #1054

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

Open
2 of 3 tasks
JolanDeNef opened this issue May 7, 2025 · 1 comment
Open
2 of 3 tasks

[Bug]: Tags are desynced when restarting the app (android only) #1054

JolanDeNef opened this issue May 7, 2025 · 1 comment
Labels

Comments

@JolanDeNef
Copy link

JolanDeNef commented May 7, 2025

What happened?

Related issue: #166 (closed)

My users can add country tags through the API, and so choose what countries they'll receive notifications from.

Image

When changing the tags using the API, the behaviour is as expected. Tags are added and removed according the way I want it. I can even follow it in the dashboard.

You can go through the app, go back to the 'select countries' screen. Everything works fine.

Until you close the app (hard close) and reopen it. When you do that, the tags are put back to their original state.

Note that on Ios everything works fine.

Steps to reproduce?

1. Install 3.3.3 of the dependency
2. Launch the app on Android device (you can even test it in real time: https://play.google.com/store/apps/details?id=be.instituuttropischegeneeskunde.app&hl=en)
3. Play with the countries in 'my destinations'
4. Hard close the app
5. Reopen, go to 'my destinations'

What did you expect to happen?

I expect the tags to be remembered.

OneSignal Cordova SDK version

3.3.3

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No relevant log output.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nan-li
Copy link
Contributor

nan-li commented May 22, 2025

Hi @JolanDeNef, the v3 major version of this SDK is no longer actively supported and maintained. I recommend upgrading to the v5 major version. However, I can help debug this issue, if possible. Please provide verbose-level logs throughout your reproduction process so we can see what may be happening in the SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants