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

[question]: get tags in new sdk? #708

Closed
1 task done
zvikarp opened this issue Aug 20, 2023 · 10 comments
Closed
1 task done

[question]: get tags in new sdk? #708

zvikarp opened this issue Aug 20, 2023 · 10 comments

Comments

@zvikarp
Copy link
Contributor

zvikarp commented Aug 20, 2023

How can we help?

I can't figure out how to get the user's tags in the new SDK 5.0.0, the old method was OneSignal.shared.getTags().

Looked through the docs and the migration guide.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@giangdk
Copy link

giangdk commented Aug 23, 2023

same issue

@agarwalrohit2503
Copy link

Same issue

@malsharaf
Copy link

same issue

@GauthierDepierre
Copy link

GauthierDepierre commented Oct 31, 2023

same issue

User story:

  • Our app allow users to get loyalty points cumulated in a "points" tag on OneSignal
  • On app open, we get the user OneSignal tags to know how many points the user has
  • We show the points count to the user in UI

How to reproduce this user story with new SDK not allowing to read tags?

@hosaysg
Copy link

hosaysg commented Dec 11, 2023

It is now 5.0.4 and gettags is still not supported???

@nan-li
Copy link
Contributor

nan-li commented Dec 11, 2023

Hi all,

The method getTags was deliberately removed in v5 to discourage the use of OneSignal as a data store. User data should primarily be managed by the app developer and live on the app developer's servers.

However, from feedback we received, we added getTags back to our native Android and iOS SDKs, and will be available in the next release of the Flutter SDK. It will return the local tags and will not result in a server fetch, so tags added via the REST API may not be reflected until the SDK pulls data.

@GauthierDepierre
Copy link

Great news! Thanks for the update.
Would you have any release timeline to share for this?

@GauthierDepierre
Copy link

Hello @nan-li and thanks again or your feedback. I've started to see the getTags() method appearing back in documentation but not yet for Flutter. Any chance you have a release timeline in mind for Flutter SDK 5.0.5 integrating this method? Many thanks.

@dgilperez
Copy link

Hi! Just wondering when this would be available, as it's blocking our sdk upgrade.

@jennantilla
Copy link
Contributor

Hello everyone! Apologies that we missed updating this issue but getTags is now available on our Flutter User Model SDK. Please upgrade to our latest version to begin using it!

Thanks!

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

No branches or pull requests

9 participants