You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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:
"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
The text was updated successfully, but these errors were encountered: