Skip to content

Implement permission handling for services #235

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
codeanticode opened this issue Jul 20, 2016 · 1 comment
Closed

Implement permission handling for services #235

codeanticode opened this issue Jul 20, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@codeanticode
Copy link
Contributor

"Dangerous" permissions need to be requested to the user once the app has been installed. In the case of services, particularly watch faces, there are several ways to do it (wearable app requests the permission on the wearable device, handheld app requests the permission on the wearable device, etc). The simplest seems to be having the wearable app (a service) requesting the permission on the wearable device. This requires the wearable app to create an activity from where to launch the request dialogs. The following helper class could be useful as a reference:

https://github.com/mvglasow/satstat/blob/master/src/com/vonglasow/michael/satstat/utils/PermissionHelper.java

Example of use:

https://github.com/mvglasow/satstat/blob/master/src/com/vonglasow/michael/satstat/PasvLocListenerService.java

@codeanticode codeanticode added this to the 4.0-beta2 milestone Jul 20, 2016
@codeanticode codeanticode self-assigned this Jul 20, 2016
@codeanticode
Copy link
Contributor Author

b43fdb7 and dcd95c8 fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant