OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
606 stars 204 forks source link

[Bug]: OneSignal can't get subscription status for Android devices with android 12 and lower #839

Open tortamque opened 4 months ago

tortamque commented 4 months ago

What happened?

Hello. I'm facing an issue where OneSignal for Flutter (onesignal_flutter: ^5.1.0) can't get subscription status for Android devices with android 12 and lower (API Level 32 and lower). Therefore these android devices can't receive any push notifications. Tested on Realme 7 5G (Android 10), Pixel 3a (Android 12) and Android emulator (Android 12). They being displayed on "Subscriptions" menu, but "Subscription Status" is empty.

However, it works on android emulator with Android 13.

I can provide additional information or code snippets if needed. Screenshot 2024-02-21 at 17 59 34

Steps to reproduce?

1. Add latest version of one signal flutter SDK (5.1.0).
2. Configure OneSignal in the app and launch it on device with android 12 or lower.
3. The device will appear on the "Subscriptions" menu, but "Subscription Status" is empty.

What did you expect to happen?

I expected to see checkmark, "Permission Not Granted" or any other subscription status.

OneSignal Flutter SDK version

5.1.0

Which platform(s) are affected?

Relevant log output

No response

Code of Conduct

nan-li commented 4 months ago

Hi @tortamque thank you for reporting. I will try to reproduce with your steps, and follow up if I have any other questions.

Chhay67 commented 4 months ago

I am also face this issue.

MuhamadHaydar commented 3 months ago

I am facing the same issue, Have you got any solution?

seydidemir commented 3 weeks ago

Any solution?

tortamque commented 3 weeks ago

Unfortunately, I didn't find any solution for this issue, so I had to move the push notification functionality to Firebase