RaphaelWoude / capacitor-native-settings

Capacitor plugin to open native settings screens for android and iOS
MIT License
95 stars 30 forks source link

Location permission setting direct open in IOS device setting #39

Closed dhruvi7489 closed 1 year ago

dhruvi7489 commented 1 year ago

Hi guys,

App store rejecting my apk because of security reasons to given access in my app.

My code: NativeSettings.open({ optionAndroid: AndroidSettings.ApplicationDetails, optionIOS: IOSSettings.App }).then((res: any) => { // Code }).catch((err: any) => { // Code })

But in this module i don't find any specific way to open device setting directly to location access permission.

Can anyone suggest me how i can give specific location access permission in IOS?

RaphaelWoude commented 1 year ago

Hi @dhruvi7489

Apple is very vague with what they allow for applications these days. The package supports different options outside of IOSSettings.App but we don't know if these are allowed at this moment in time as Apple does not provide us with a list of allowed and disallowed options.

You can try IOSSettings.Location but I cannot guarantee that this will not be rejected.