Page 1 of 1

Make a pop up exit app with back button

PostPosted: Sun May 07, 2017 12:05 pm
by irwandwiyanto
I tried to make aplkasi game, but there is little less that how to exit game application by pressing back button and pop up option exit yes no. The script I created is standard like this.

Image

Re: Make a pop up exit app with back button

PostPosted: Mon May 08, 2017 6:32 pm
by rayray
@irwandwiyanto

You can use a Dialog plugin in order to create a pop-up box to give the user an option to exit the game when the back button is pressed.

There's two dialog plugins that i've used, both work well.

- Cranberry's CordovaDialog plugin, which is what i currently use, but you have to pay to get access to the plugin.

- CocoonCanvasplus plugin, you can use the dialog feature but it only works if you compile using Cocoon.io & Canvas +, but its free to download.

There might be other dialog plugins, but these are the ones i've used so i can vouch for them.

Hope that helps.