The PowerOn API is used to register to receive an event when the device is resumed from suspend mode.
Note - this file either needs to be on the device in a relative folder from where your HTML page is, or it must be copied to your web server appropriately.
This API does not use the
The PowerOnEvent is sent whenever the device is resumed from suspend mode. There is no data associated with this event.
This feature is very useful for security. Navigating to an offline page (file:// protocol) when the device is powered on can be used to request a pin number from the user.
Windows Power events will not always be generated when the device is connected to power and instructed to stand by / wake up, though this is dependent on the Operating System in use.