How to access to Android's back button?

0 favourites
From the Asset Store
Helping streamers give their viewers more excitement.
  • I don't know why people keep bumping this, the Browser object has had 'On back button pressed' for ages.

  • "Brower -> On back button" is there but it does not work OTB (not on my Galaxy S4), and I think this gives a lot of confusion. I spent some time digging in the Internet and solution for me was to add the following lines:

    <script type="text/javascript" src="cordova.js">
    <script type="text/javascript" src="intelxdk.js">[/code:2xpn1ysy]
    To the index.html in XDK. As far as I know it doesn't work for iOS but I am not able to test it.
  • I'm looking for solution too, gamers are pretty annoyed, that back button doesn't do anything in my game

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ah I see there is a really old post of mine above .

    Basically Browser -> on Back Button works and I think there is no way so that button wouldn't work. It works even with CocoonIO, which has limited browser functionality. You just have to export the game as Cordova project, not HTML5. Otherwise you will have to add manually the two lines I've mentioned a year ago.

    Maybe post some screenshot? Which wrapper do you use? Do you export as Cordova?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)