OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.57k stars 373 forks source link

[question]: App stopped due to OneSignal?.Notifications?.requestPermission(true); #1626

Open abdulmateentechbits opened 9 months ago

abdulmateentechbits commented 9 months ago

How can we help?

The app crashes on Android mobile devices with version 8 or lower. However, on versions above 8, it is working properly. This issue causes the app to stop when I uncomment the following line:

// OneSignal?.Notifications?.requestPermission(true);

Code of Conduct

samu-gataca commented 9 months ago

If the user enables notifications, it works, if the user disables the notification the app crashes. I tried out with version 5.0.2, 5.0.3 and 5.0.4. It's urgent

TierryBr commented 8 months ago

up