react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

Method to get motion authorization status

Open jamesloper opened this issue 3 years ago • 8 comments

Hey, guys. I'd like to know if there's any way to retrieve the device's present iOS authorization status for the motion permission. I'm trying to accomplish a UI such as this:

image

I believe this is the native permission in question... https://developer.apple.com/documentation/coremotion/cmmotionactivitymanager/2913744-authorizationstatus

jamesloper avatar Jul 07 '21 17:07 jamesloper

https://github.com/zoontek/react-native-permissions

mikehardy avatar Jul 07 '21 17:07 mikehardy

Any way to do it with only Transistorsoft?

jamesloper avatar Jul 07 '21 17:07 jamesloper

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] avatar Sep 06 '21 20:09 stale[bot]

Not stale, clearly the requisite native code is already in the package somewhere...perhaps an undocumented RN api?

jamesloper avatar Sep 06 '21 21:09 jamesloper

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] avatar Apr 16 '22 07:04 stale[bot]

Holding out hope 🙃

jamesloper avatar Apr 16 '22 19:04 jamesloper

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] avatar Sep 21 '22 03:09 stale[bot]

hey, also interesting how to check status of Physical activity in general?

in Android i can check it

PermissionsAndroid.check(PermissionsAndroid.PERMISSIONS.ACTIVITY_RECOGNITION).then((permissionStatus) => {
    console.log('RES1');
    console.log(permissionStatus);
});

but how we can check it in ios?

asking because we are managing all permissions (background, foreground, and trying to Physical activity) in app flow before trying to start() in react-native-background-geolocation

superyarik avatar Oct 04 '23 08:10 superyarik