-
Notifications
You must be signed in to change notification settings - Fork 368
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]: How to clear all data tags in 5.0.0? #1805
Comments
@Popda With the 5.0.0 SDK you can simply add the tags each time in your app. The SDK is optimized to only send what is out of sync to OneSignal. Or by "manage them" is it a must to be able to read them? If so can you give an example? In the title you have "How to clear all data tags in 5.0.0?", could you explain the reason for this? I am guessing you may not need this as you can now call |
@jkasten2 tags are set or removed for the user based on his interactions with the app so at some point he may loose some tags but our server gives us only list of tags that user should have and without getTags() we dont know what tags we should remove. |
@Popda thanks for your patience! We do have the method |
Hi, what if I don't track tags added and don't have list of tags to remove? |
Hi @Popda just wanted to circle back on this. Currently, there is no SDK method in our 5.0.0 major release to retrieve all stored tags. Accessing this data via the SDK is beyond the intention for data tags, which is purely for messaging purposes. If you wish to access all the existing tags for your users, you could consider using our CSV exporter so that you can begin tracking tag keys. Similarly, you could bulk-edit tags via CSV import if you wish to delete all data tags. This request is also being tracked here. Your feedback will be passed along to our Product team so that a method similar to Please let us know if you have any additional questions or concerns! |
How can we help?
In 5.0.0 version we have functions to remove tags by name but how should they be managed in case if current tags for user are unknown? In 4.x.x version we could check existing tags with getTags() fun to get names of tags and manage them as we like but it was removed in 5.0.0
Code of Conduct
The text was updated successfully, but these errors were encountered: