B4J Question [ABMaterial]: How to implement AddToHomeScreen for ABMaterial WebApp?

Mashiane

Expert
Licensed User
Longtime User

alwaysbusy

Expert
Licensed User
Longtime User
Haven't tested it myself but according to the docs probably something like this in ABMApplication:

In BuildPage()
B4X:
AppPage.AddExtraJavaScriptFile("custom/addtohomescreen.min.js")
AppPage.AddExtraCSSFile("custom/addtohomescreen.css")

In Websocket_Connected() at the beginning:
B4X:
ws.Eval("addToHomescreen();", Null)
ws.Flush
 
Upvote 0
Top