Protect app foreground access with an internal PIN code or biometric sensor lock screen.
Protect app foreground access with a native PIN passcode lock screen. Nativine embeds native PIN and biometric lock views, requiring users to authenticate with a 4-digit/6-digit PIN or Face ID / Touch ID whenever the application resumes from the background.
Passcode Lock is essential for banking, health, crypto, and private content applications. Nativine's native Passcode Lock plugin renders a secure OS overlay above the web view whenever the app is re-opened:
To prompt PIN setup or trigger passcode locking programmatically in JavaScript, call nativine.passcodeLock.lock():
// Force lock app screen immediately
nativine.passcodeLock.lock();
// Prompt PIN setup dialog
nativine.passcodeLock.setupPin({
pinLength: 4,
callback: 'onPinCreated'
});
| Parameter | Type | Description |
|---|---|---|
pinLength | integer | Optional. PIN digit length (4 or 6, default: 4). |
callback | string | Optional. JS callback function called when PIN is successfully created. |
Yes. You can trigger a password reset web flow by configuring a "Forgot PIN" button callback link.
Yes. When the user switches apps, Nativine automatically blurs or hides the app screen preview in the OS multitasking task switcher.
Get priority Nativine documentation and updates in your Google Search and AI Overviews.