RaphaelWoude / capacitor-native-settings

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

IOS Setting for `TOUCHID_PASSCODE` #38

Closed chvonrohr closed 1 year ago

chvonrohr commented 1 year ago

I'd like to open the passcode setting to let the user activate a local device authentication, as sensitive data is not secured properly without that. It would be nice to lead the user directly to that setting.

Would it be also possible, to just open the main page of the settings?

RaphaelWoude commented 1 year ago

Hi @chvonrohr

I'd like to open the passcode setting to let the user activate a local device authentication, as sensitive data is not secured properly without that. It would be nice to lead the user directly to that setting.

I have just added IOSSettings.TouchIdPasscode to the IOSSettings in version v5.0.1. This version should be available now on NPM.

Would it be also possible, to just open the main page of the settings?

You are able to open the main page of the settings with IOSSettings.General.

Let me remind you that these options might not be supported by Apple. Apple is very vague on what they allow or disallow with App-Prefs. Your app might be rejected if you use any of the App-Prefs.