react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

getTags retrieves other user's data tags

Open zirgulis opened this issue 3 years ago • 1 comments

Description:

We are using data tags to tag users with different attributes. The issue we noticed is:

  1. User logs in into the app, if data tag is not present, set it.
  2. User logs out
  3. Different user account logs in the same device, data tag is present from previous user.

Is there some limitation in place, where the data tags are set on device level and different accounts with playerIDs are ignored?

Would really appreciate any advice on this issue.

Environment

OneSignal version: "^4.3.11" React native version: ""0.65.1" Followed docs and used yarn

zirgulis avatar Aug 07 '22 17:08 zirgulis

@zirgulis By different playerIDs do you mean different externalUserIds? Player IDs are device specific and do not change if the externalUserId is changed.

Is there some limitation in place, where the data tags are set on device level and different accounts with playerIDs are ignored?

Yes currently tags go on the player id (device). We are aware of the limitations of handling "users" this way and are working on a change!

emawby avatar Aug 09 '22 16:08 emawby

Just wanted to note that in our new major release (5.x.x) we have updated to a new user-centric model that addresses this feedback. Please refer to our migration guide for details on upgrading. Thanks!

jennantilla avatar Feb 03 '24 00:02 jennantilla