Alert popup on first app open

Hi all--  

For my app, I would like to make it so that the first time a user opens the app a native alert popup appears with general instructions & information.

Here’s my alert code

local function onComplete( event ) if event.action == "clicked" then local i = event.index if i == 1 then elseif i == 2 then end end end alert = native.showAlert( "How to Play", "App stuff here", { "Okay" }, onComplete )

If there is a way to make it appear only on the first app open ever, not every time the app is opened, that’d be great.

Thanks!

Hi,

You would need to Save and Load this information from a database or a file. The variables in the application will not be saved between sessions (between opening and closing).

Best regards,

Tomas

Hi,

You would need to Save and Load this information from a database or a file. The variables in the application will not be saved between sessions (between opening and closing).

Best regards,

Tomas