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

[Bug]: Urgent Production OneSignal some users don't receive notifications #1722

Open
2 of 3 tasks
sirusbaladi opened this issue Jul 8, 2024 · 7 comments
Open
2 of 3 tasks

Comments

@sirusbaladi
Copy link

sirusbaladi commented Jul 8, 2024

What happened?

OneSignal Login and Notification Problem for Specific Users

Description

I'm experiencing an issue with OneSignal in our production environment where login and notifications have stopped working for some users, while continuing to function normally for others.

Current Behavior

  • For affected users:
    • Login to OneSignal no longer works
    • Last session in OneSignal dashboard is not updating
    • Users are not receiving notifications
  • For other users, everything works as expected

Debugging Steps Taken

  1. Added a button in the app to trigger a notification
  2. Logging IDs using:
    • OneSignal.user.getOneSignalID (always null)
    • OneSignal.user.getExternalID (this is correct)

Observations

  • The external ID is set correctly
  • Subscription records are not updated
  • Last session is not visible in the OneSignal dashboard for affected users

Suspected Cause

There's a suspicion that the logout process might be causing issues. In the app's logout method, OneSignal.logout is called.
So logging in after logging out might not work.

Questions

  1. Could calling OneSignal.logout during the app's logout process be causing this issue?
  2. Why would this only affect some users and not others?
  3. Is there a way to reset or reinitialize OneSignal for affected users?

Additional Context

This issue is affecting production users, and I have no clear path to resolution as it's working correctly for the majority of users.

Impact

This issue is preventing affected users from receiving important notifications, significantly impacting their experience with my app.

Steps to reproduce?

1. Initialize OneSignal with `OneSignal.setAppId`
2. Ensure permissions are granted
3. Call `OneSignal.login` with the external user ID
4. For some users, this process fails silently

What did you expect to happen?

I expected the last session to be updated as well as the subscription tab in onesignal and users to receive notifications.

React Native OneSignal SDK version

"react-native-onesignal": "^5.1.0", "onesignal-expo-plugin": "^2.0.2",

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nan-li
Copy link
Contributor

nan-li commented Jul 8, 2024

Hi @sirusbaladi thank you for reporting this. Do you have any logs available that include when login and/or logout are called?
By any chance, do you have Identity Verification enabled for you app?

@sirusbaladi
Copy link
Author

Hi @sirusbaladi thank you for reporting this. Do you have any logs available that include when login and/or logout are called? By any chance, do you have Identity Verification enabled for you app?

I have OneSignal.Debug.setLogLevel(LogLevel.Verbose); but I don't see any logs at login, logout.

I don't have identity verification enabled.

@sirusbaladi
Copy link
Author

the only idea I have for now to create a new app in onesignal and change the keys in the app. but that's a painful process given that users who don't update the app won't receive notifications

@sirusbaladi sirusbaladi changed the title [Bug]: OneSignal Login Failing for Specific Users (Post Logout?) [Bug]: Urgent Production OneSignal some users don't receive notifications Jul 8, 2024
@gebrown43
Copy link

Any update here I am also experiencing this issue

@mtebele
Copy link

mtebele commented Oct 3, 2024

Same here!

@zguo123
Copy link

zguo123 commented Oct 8, 2024

Same here, can someone please give an update?

@mtebele
Copy link

mtebele commented Oct 9, 2024

In my case, users who installed our app with OneSignal v4 and then updated it to the version with OneSignal v5 are not receiving notifications until they open the app. So, we cannot reach users who automatically updated the app!

We need an urgent solution.

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

5 participants