I'm trying to create a watch face using some data. However, I need access to ACCESS_FINE_LOCATION to get the user's location. From the sample provided here, the watch face is launched as a service and permission's cannot be requested from a service. What would be the best approach to develop a watch face that requires dangerous permissions and will require to make network calls?
Asked
Active
Viewed 23 times
1 Answers
0
I'm not sure if it's the right way to do it for a watch face... but you can start an activity once the face is set to request the permission...

Douglas Silva
- 70
- 5
-
From what method or place would you launch the activity in the service? – user3826764 Aug 28 '23 at 14:11
-
If it's a permission you will need right away, call it on onCreate (or similar)... if it is something not "essential", required just for a specific feature, before calling the feature you can: check if you have permission, if not you call ur activity – Douglas Silva Aug 28 '23 at 15:53