Closed sirusbaladi closed 1 month ago
bump
I guess you can use https://github.com/zoontek/react-native-permissions and ask for
PERMISSIONS.IOS.MOTION
PERMISSIONS.ANDROID.ACTIVITY_RECOGNITION
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Yes, we can manually request using https://github.com/zoontek/react-native-permissions but is there a way to disable the default pop-up for "Motion&Fitness" permission within package?
is there a way to disable the default pop-up for "Motion&Fitness" permission within package?
do you understand the consequences of the plug-in not having motion permission? They are not minor.
is there a way to disable the default pop-up for "Motion&Fitness" permission within package?
do you understand the consequences of the plug-in not having motion permission? They are not minor.
Would it be affected if we handle that permission explicitly? ie, for eg; by requesting it during onboarding manually as we need a custom screen only for handling that, and disabling the default request pop-up from geolocation package?
See API docs Config.disableMotionActivityUpdates
. Set it to false. Once you have Motion Permission, set it to true
using .setConfig
.
See API docs
Config.disableMotionActivityUpdates
. Set it to false. Once you have Motion Permission, set it totrue
using.setConfig
.
Hey, don't really understand.
My requirement is that, the "Motion and fitness" permission should ONLY be asked only when user clicks a button "Enable permission" and it should NOT be asked implicitly just beacuse I use the package. And the way to disable the one from package is to set disableMotionActivityUpdates: true.
And then I can request that permission manually using react-native-permissions as required on the button click.
So, my question is, will this approach has any consequences of the plug-in not having motion permission? Or will this affects the geolocation lib functionalities somehow?
will this approach has any consequences of the plug-in not having motion permission?
no. The plugin doesn't care how permission is achieved. Permissions are granted to your app.
will this approach has any consequences of the plug-in not having motion permission?
no. The plugin doesn't care how permission is achieved. Permissions are granted to your app.
Ok, so this approach is fine I think. Thank you!
https://github.com/zoontek/react-native-permissions?tab=readme-ov-file#ios
By default, no permissions are available
(followed by lots of detailed setup instructions - I'm guessing something is missed)
Hi,
I'm aware that there's a method to manually trigger location permissions, is there a similar way to trigger the permission for the motion sensors?
The expo library to do so seems to not work and I like to request the permission during user onboarding one by one.
thank you