function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mobile1.3955696025783267E12mobile1.3955696025783267E12 

pin-code protection offline?

Does pin-code protection for mobile Applications works also offline?

Or I need the app to be connected for the user to insert and validate the PIN?

Thanks a lot
bob_buzzardbob_buzzard
The pin-protection is local - you don't need to be online in order to enter the pin code and access the application.

Full details can be found at: https://developer.salesforce.com/docs/atlas.en-us.188.0.mobile_sdk.meta/mobile_sdk/connected_apps_security_pin.htm
mobile1.3955696025783267E12mobile1.3955696025783267E12
Thanks a lot Bob,

is there a step by step example on how to configure this? Is there a Mobile App example in the SDK I can use?

Thanks a lot

Maurizio.
mobile1.3955696025783267E12mobile1.3955696025783267E12
Hi Bob, 

how do I relate an existing mobile app developed with MobileSDK to a connected App in order to inherit the PIN policy protection? thanks a lot
akhilesh_sfdcakhilesh_sfdc
Just use the "Client ID" of your connected app inside your Mobile SDK app. For iOS hybrid app, the setting must be in bootconfig.xml file. For native iOS app, the setting is inside the AppDelegate.m file.
Gerardo BiancoGerardo Bianco
Thanks a lot Akhilesh it works!

I have two questions on this:

1) can I translate the messages related to the pin-code protection? I switched my profile to a different language, but it remains the same. I have also looked into the translation workbench without success
2) when I am offline and I ask to reset my pin (because I forgot) the app logs out, but I get an error message saying that the Device is offline, and then the only way to proceed (even if the device comes back on line) is to kill the app.  Is there a way to change this screen? Thanks.