Skip to content

Implement permission handling for services #235

@codeanticode

Description

@codeanticode

"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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions