How implement to can auto start the application when i configure in settings of Android? #14960
Unanswered
ComptonAlvaro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello:
I would like to can auto start the application when the device reboot or power on, but I don't find the way to make it work.
I have found this example: https://stackoverflow.com/questions/49403069/xamarin-android-receiver-on-boot-completed-error
But I not able to make it work:
This is my code:
BootReceiver.cs in the folder platfroms\Android:
I don't have set anything in the android manifest, because according to the accepted answer, it is not needed if I configure it with attributes in the class.
But in the device, in settings, I set the application to auto start, it doesn't start.
How should I implement my application to can start in when the device reboot?
Thanks.
Public API Changes
No changes are needed.
Intended Use-Case
I want to start my application when the device power on or reboot.
Beta Was this translation helpful? Give feedback.
All reactions