Skip to content

@nativescript/local-notifications: ANRs due to android.intent.action.LOCKED_BOOT_COMPLETED #262

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

Closed
lambourn opened this issue Apr 13, 2022 · 0 comments · Fixed by NativeScript/android#1712

Comments

@lambourn
Copy link

In the Google Play Console we have quite some ANRs logged that point to the NotificationRestoreReceiver of this plugin but I do not understand what the issue here is.

This seems to exclusively happen on Honor and Huawei phones (=from the era before HarmonyOS and with Play Store/ Play Services installed obviously)

Only information

Broadcast of Intent { act=android.intent.action.LOCKED_BOOT_COMPLETED flg=0x9000010 cmp=xxx.yyy.zzz/com.telerik.localnotifications.NotificationRestoreReceiver (has extras) }

and nothing much more except native obfuscated traces.

I understand that the AndroidManifest uses the RECEIVE_BOOT_COMPLETED permission

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

and the intent filters on LOCKED_BOOT_COMPLETED and BOOT_COMPLETED

<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
<action android:name="android.intent.action.BOOT_COMPLETED" />

and finally, in the receiver this line guards for the BOOT_COMPLETED

if (context == null || !Intent.ACTION_BOOT_COMPLETED.equalsIgnoreCase(intent.getAction())) {

looks all good to me. Still we get these ANRs. Any idea why?

Btw, in Eddy's original plugin, there is also an issue related to this, not resolved as well:
EddyVerbruggen/nativescript-local-notifications#186

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

Successfully merging a pull request may close this issue.

1 participant