Skip to content
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

Set service properties #92

Closed
blootsvoets opened this issue Feb 12, 2019 · 0 comments
Closed

Set service properties #92

blootsvoets opened this issue Feb 12, 2019 · 0 comments

Comments

@blootsvoets
Copy link
Member

All services (also for plugins) should have exported=false and description attributes set in the AndroidManifest. As per documentation:

You can ensure that your service is available to only your app by including the android:exported attribute and setting it to false. This effectively stops other apps from starting your service, even when using an explicit intent.

Note: Users can see what services are running on their device. If they see a service that they don't recognize or trust, they can stop the service. In order to avoid having your service stopped accidentally by users, you need to add the android:description attribute to the element in your app manifest. In the description, provide a short sentence explaining what the service does and what benefits it provides.

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

No branches or pull requests

2 participants