For the complete documentation index, see llms.txt. This page is also available as Markdown.

App Launch Detection API

Detect app launch events using the WebToNative JavaScript API. Trigger custom actions and detect app launch when users open your Android or iOS app.

You'll need to import the javascript file in your website before starting from this link.

This function returns true only when the app is launched. On subsequent calls during the same session, it will return false. If the app is terminated and relaunched, it will return true again. This behavior can be used to execute specific actions every time the app is launched.

window.WTN.appFirstLoad().then(function(value){
  console.log(value)
});
import { appFirstLoad } from "webtonative"

appFirstLoad().then((value) => {
  console.log(value)
});

Response : { type : "firstCallWhenAppStarted", result : true/false }

*Feature was taken live on 23/12/2024

Last updated