How do I handle Android back button with Cocoon.io

  • Is there any way to handle Android Back button to quit app with Cocoon.io by using Cordova?

  • for exit

    exit button press - cocooncanvasplus Exit app

    and for back

    back button press - system go to previous layout or ( to layout)

  • I also have trouble using Android back button. I have the following setup:

    Browser -> On mobile back button pressed -> CocoonCanvasplus -> Forces the app to finish[/code:2d208i34]
    
    But when I exporti it, sign it and instal on testing device, the backbutton is not working.
  • I have run that button with the same setting above, it works. However when quitting the app I see "Unfortunately app has stopped" error then. I haven't found and solution for this currently.

  • i dont think cocoon work with the Brower plugin

  • i dont think cocoon work with the Brower plugin

    It does

  • Back button works and there are two options to quit app. If you use Canvas+ you can use Exit app. If not you can use also Browser-Close function. Both of them works with the new Cocoon, however after exiting the app, it gives "app has stopped" error. First I was thinking this may be from my game (memory or not destroying some processes well), then I have tried it with empty project and get the same error. I am now very unhappy with the new Cocoon system and it will be activated at the end of this month with deprecating the previous CocoonJs platform. If these kind of problems not solved properly we will get many complaints from users.

  • Back button works and there are two options to quit app. If you use Canvas+ you can use Exit app. If not you can use also Browser-Close function. Both of them works with the new Cocoon, however after exiting the app, it gives "app has stopped" error. First I was thinking this may be from my game (memory or not destroying some processes well), then I have tried it with empty project and get the same error. I am now very unhappy with the new Cocoon system and it will be activated at the end of this month with deprecating the previous CocoonJs platform. If these kind of problems not solved properly we will get many complaints from users.

    I'm using Cocoon.io since the beginning and I never have had such issues.

    I'm only using the official Cocoon Atomic plugins for Ads and so on, made a third-party plugin / behavior is causing the crash.

    Use the developer app to see why your game had crashed.

    Regards

    Andy

  • wizdigitech where is back button press command?

  • Kermad sorry but currently i am not sure. i stop use cocoon.io untill they find a solution to build with Appodeal plugin

  • wizdigitech where is back button press command?

    I'll work out a tutorial for that. I'll post the link here when I'm done

    Regards

    Andy

  • AndreasR Looking forward to it! very interested.

  • AndreasR Looking forward to it! very interested.

    Hi,

    here is the link <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    https://shatter-box.com/knowledgebase/c ... ocument-12

    You also find a code example there.

    Regards

    Andy

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > AndreasR Looking forward to it! very interested.

    >

    Hi,

    here is the link <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    https://shatter-box.com/knowledgebase/c ... ocument-12

    You also find a code example there.

    Regards

    Andy

    Thank you for your help!

  • AndreasR

    The link is dead

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