lock_app

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_app request 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 message lock_app with lockType as manual to confirm lock.

Related