OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

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

Open tortamque opened this issue 1 year ago • 6 comments
trafficstars

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?

  • [ ] iOS
  • [X] Android

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

tortamque avatar Feb 21 '24 15:02 tortamque

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

nan-li avatar Feb 21 '24 17:02 nan-li

I am also face this issue.

Chhay67 avatar Feb 26 '24 09:02 Chhay67

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

MuhamadHaydar avatar Mar 27 '24 18:03 MuhamadHaydar

Any solution?

seydidemir avatar Jun 07 '24 13:06 seydidemir

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

tortamque avatar Jun 08 '24 08:06 tortamque