myzPAX wants to lock the embedded application.
You must listen for this and respond with sendZpaxMessage('lock_app', ...) after cleanup (e.g., saving state).
Message Type
type messageType = 'lock_app';Payload
None.
Example
addZpaxMessageListener('lock_app', () => {
// Perform necessary operation before locking
sendZpaxMessage('lock_app', {
lockType: 'manual',
afterReAuthAction: 'reload',
});
});Use Cases
- When there is a
lock_apprequest from the user using myzPAX UI, you will receive this message where you can perform necessary operation like stopping timers, saving state and send the messagelock_appwithlockTypeasmanualto confirm lock.
Related
sendZpaxMessage('lock_app', ...)— Message you send in response to this.addZpaxMessageListener— Function used to subscribe to incoming messages.