OneSignal / OneSignal-Android-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native Android or Amazon app with OneSignal. https://onesignal.com
Other
604 stars 368 forks source link

[Bug]: Adding Tag On User Not Reflecting Immediately #1951

Closed rahat14 closed 9 months ago

rahat14 commented 10 months ago

What happened?

i am using latest release of one signal , now i am trying to send notification using filter from postman , so the system add a tag named "id" when a new user login to my app. then when i try to send notification by using filter the app do not receive any notification.

"filters": [ { "field": "tag", "key": "id", "relation": "=", "value": "rahatshovo.dev@gmail.com" } ],

But if i restart the app , same filter works , i recieve notifications. i am setting tag by using OneSignal.getUser().addTag("id" , "rahatshovo.dev@gmail.com");****

Steps to reproduce?

1. install com.onesignal:OneSignal:[5.0.0, 5.99.99]
2. create a tag for a user, 
3. try to send a notification by using the filter for that tag  it will not receive any notification 
4. But restarting the app everything becomes normal

What did you expect to happen?

i expect that when adding a tag to the user it should reflect Immediately. So, users do not need to restart app to get any tag value filtered notification.

OneSignal Android SDK version

com.onesignal:OneSignal:[5.0.0, 5.99.99]

Android version

13

Specific Android models

Pixel 6 
Redmi k20 pro 
Andorid Emulator.

Relevant log output

No response

Code of Conduct

jennantilla commented 10 months ago

Hi @rahat14 thanks for reaching out. It sounds like perhaps the tag request is not successfully being sent in the same session. Would you be able to send over a log reproducing this issue so we can take a closer look? Thanks!

rahat14 commented 9 months ago

Found The issue but could not understand here is the attached log Image . @jennantilla Screenshot 2023-12-31 155540

emawby commented 9 months ago

@rahat14 It appears the user has already reached their tag limit. If you believe that to be an error please reach out to our support team.

jennantilla commented 9 months ago

Closing this issue since this appears to be related to entitlements. Please let us know if there are any additional questions or concerns!