react-native-background-geolocation
react-native-background-geolocation copied to clipboard
Method to get motion authorization status
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:
I believe this is the native permission in question... https://developer.apple.com/documentation/coremotion/cmmotionactivitymanager/2913744-authorizationstatus
https://github.com/zoontek/react-native-permissions
Any way to do it with only Transistorsoft?
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.
Not stale, clearly the requisite native code is already in the package somewhere...perhaps an undocumented RN api?
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.
Holding out hope 🙃
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.
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