OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.56k stars 373 forks source link

[bug]: why is user tags not added or linked on subscriptions #1618

Open aman123shi opened 8 months ago

aman123shi commented 8 months ago

How can we help?

I am creating users with tags using external_id as an identifier by using the REST API from my backend and the request is successful but when a player subscribes for push notification from React native app the user tags are not added to the user subscriptions but after the user subscribed and I try to add that user again the user tags are added to the subscriptions how to fix this

Code of Conduct

jennantilla commented 8 months ago

Hi @aman123shi thanks for reaching out! Just to clarify, you are saying that when using the SDK to add tags, the tags are not added until the user subscribes? Would you be able to send a log from the device capturing this behavior, please?

aman123shi commented 8 months ago

no, am not setting tags from the SDK I am saying I created a user with tags and external_id using Users rest API from my backend when a user registers to my system so when a user from the mobile app tries to subscribe to push notification using that same exteranl_id that I set when my user registers it's tags are not added to his subscriptions when I see it from the oneSignal dashboard . by the way I am using react-native-onsignal 4.5.2 since the version 5 does not support identity verification

JovanMwesigwa commented 6 months ago

Anyone figured how to solve this?