Open shefich opened 1 year ago
Any news? Too many ANRs!
Sorry for the late response
What is your code in your push subscription changed callback? It might be causing the issue
Don't have any callbacks for subscription. So the issue could be with the code/logic in your code or native code. The only my code is the code which asks for push permission:
var currentStatus = OneSignal.Default.NotificationPermission;
if (currentStatus == NotificationPermission.NotDetermined) {
var response = await OneSignal.Default.PromptForPushNotificationsWithUserResponse();
if (response == NotificationPermission.Authorized) {
// user accepted push notifications
if (PlayerPrefs.GetInt("postPushes", 1) == 1) StartCoroutine(SetDailyReminder());
}
} else
{
if (PlayerPrefs.GetInt("postPushes", 1) == 1) StartCoroutine(SetDailyReminder());
}
Thanks for the info!
I was unable to reproduce this issue myself Are you able to reproduce the issue?
Can you provide the devices the issue occurs on and what version of Android they are on
Android 11. Samsung devices A20, A01. These devices are from Crashlytics. Can't find the Google Play devices (time passed and there's no such filters as "key" in Crashlytics).
More devices: HUAWEI HWMAR, HONOR HWKSA-M, HONOR HWSTK-HF, HUAWEI HWPOT-H, HUAWEI HWSTK-HF. Android OSs 9 and 10. And full stacktrace attached. stacktrace.log
What happened?
Errors from the Google Play console. ANRs happen.
Steps to reproduce?
What did you expect to happen?
I expected not to see the ANRs.
Unity version
2021.3.26 2020.3.48
OneSignal Unity SDK version
3.0.10 3.0.11
Platform
Android
Relevant log output
Code of Conduct