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]: Subscription status not changing until I open the app again. #2050

Open
1 task done
souravpalitrana opened this issue Apr 11, 2024 · 2 comments
Open
1 task done

Comments

@souravpalitrana
Copy link

souravpalitrana commented Apr 11, 2024

What happened?

In my app I am handling the notification permission. Previously I was using version 4.x. Now migrated to 5.x. Before releasing I was testing the notification and found a serious thing. Don't know I am missing or it is a bug.
After giving the permission it is showing that permission not granted in the one signal dashboard. When I relaunch the app then status updated to subscribed.
This is serious issue. Many user do not open app second time for many days. If this is the case user will not receive push notification.

Steps to reproduce?

1. Newly install the app
2. Give notification permission
3. Get the id from the log
4. Check in the onesignal dashboard

What did you expect to happen?

Update the status immediatly

OneSignal Android SDK version

5.1.8

Android version

13

Specific Android models

Xiaomi Redmi Note 12

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jkasten2
Copy link
Member

@souravpalitrana could you share the SDK method you are using to prompt for notification permission? OneSignal.User.pushSubscription.optIn() or OneSignal.Notifications.requestPermission() or something else? If you are not prompting with OneSignal this is a known issue:

If you are prompting with OneSignal can you enable OneSignal VERBOSE logging and share your logcat so we can help debug the issue? Also share when and where in your app you are prompting.

@souravpalitrana
Copy link
Author

@jkasten2 I am using OneSignal.Notifications.requestPermission(). After granting permission I have to manually trigger optIn as well to get update in the dashboard.

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

2 participants