Bubble or message to install web-App in iPad

After many hours trying to find a way of using a js bubble to ask to install a web-app in iPad i find a simple way:

  1. in your first scene (the home to be seen in safari and the one with some message like: "Install this Web-App in your iPad, tap the icon and then Add to Home Screen”) insert a js on load scene:

    if (window.navigator.standalone == true) {hypeDocument.showSceneNamed(‘Home2’, hypeDocument.kSceneTransitionCrossfade, 1.1);} else{hypeDocument.startTimelineNamed(‘Main Timeline Home1’, hypeDocument.kDirectionForward);}

  2. create a second home (the one to be seen in the web-app installed, now without the message or a welcome message, there are many uses…)

The js will take to one or other scene depending of the first view in safari or as a installed web app.

1 Like

Nice technique, thanks!