-
Notifications
You must be signed in to change notification settings - Fork 78
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
autostart not working on android 10 os #41
Comments
2020-09-27 11:27:39.437 509-2022/system_process I/PackageDexOptimizer: Running dexopt (dexoptNeeded=1) on: /data/app/~~4u0wt5jDduYhqZRoBO3LSQ==/io.ionic.starter-trvTOysC86JM1N6blaqkPA==/base.apk pkg=io.ionic.starter isa=x86_64 dexoptFlags=boot_complete,debuggable,public,enable_hidden_api_checks targetFilter=verify oatDir=/data/app/~~4u0wt5jDduYhqZRoBO3LSQ==/io.ionic.starter-trvTOysC86JM1N6blaqkPA==/oat classLoaderContext=PCL[]{PCL[/system/framework/android.test.base.jar]} |
I have the same problem. |
It's solved for me after below changes |
Not working for me. I am using the "cordova-plugin-autostart" plugin and the "@ ionic-native / autostart" package. When I check the permissions it returns "true", so it can be assumed that the plugin is supposed to work. But on android (10 and 11) nothing happens at startup or restart. |
For me, only these two permissions are necessary (Android 10 + 11)
Relevant notes from Android documentation:
As @ShehanS noted, the user needs to manually enable "Allow display over other apps" in the app permissions to allow this plugin to work as designed. |
Thanks @ShehanS and @peitschie for their detailed answers here; they solved my problem. I've found that the SYSTEM_ALERT_WINDOW permission is not needed-- I only needed to add RECEIVE_BOOT_COMPLETED into config.xml . This is for Android 11. Note that the app might only auto-start a minute or more after the boot looks completed and after you unlock the screen. |
UP... |
Already fixed in this PR but not merged yet @ToniKorin |
Thanks! |
I tried to develop auto start app and it's working on android 7 well but android 10 it's not working.
The text was updated successfully, but these errors were encountered: