How do I handle Android back button with Cocoon.io

Get help using Construct 2

Post » Tue Jan 05, 2016 12:24 pm

Is there any way to handle Android Back button to quit app with Cocoon.io by using Cordova?
B
9
S
2
G
3
Posts: 21
Reputation: 2,302

Post » Tue Jan 05, 2016 9:51 pm

for exit

exit button press - cocooncanvasplus Exit app

and for back

back button press - system go to previous layout or ( to layout)
Image
B
33
S
10
G
2
Posts: 306
Reputation: 3,552

Post » Wed Jan 06, 2016 2:12 pm

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

Code: Select all
Browser -> On mobile back button pressed -> CocoonCanvasplus -> Forces the app to finish


But when I exporti it, sign it and instal on testing device, the backbutton is not working.
Image
B
7
S
1
Posts: 70
Reputation: 843

Post » Mon Jan 11, 2016 7:26 am

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.
B
9
S
2
G
3
Posts: 21
Reputation: 2,302

Post » Mon Jan 11, 2016 7:56 am

i dont think cocoon work with the Brower plugin
Image
B
33
S
10
G
2
Posts: 306
Reputation: 3,552

Post » Mon Jan 11, 2016 8:08 am

wizdigitech wrote:i dont think cocoon work with the Brower plugin


It does ;) but not all funtions are working though. The on back button function does work ;)
Image Image iTunes: Match3 | Google Play: Match3
B
91
S
30
G
28
Posts: 1,082
Reputation: 26,232

Post » Mon Jan 11, 2016 11:27 am

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.
B
9
S
2
G
3
Posts: 21
Reputation: 2,302

Post » Mon Jan 11, 2016 3:08 pm

gametrick wrote: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
Image Image iTunes: Match3 | Google Play: Match3
B
91
S
30
G
28
Posts: 1,082
Reputation: 26,232

Post » Wed Feb 03, 2016 12:13 am

@wizdigitech where is back button press command?
B
30
S
10
G
3
Posts: 25
Reputation: 4,228

Post » Wed Feb 03, 2016 12:23 am

@Kermad sorry but currently i am not sure. i stop use cocoon.io untill they find a solution to build with Appodeal plugin
Image
B
33
S
10
G
2
Posts: 306
Reputation: 3,552

Next

Return to How do I....?

Who is online

Users browsing this forum: AkbarAsgharMG, giorgio1982, PreacH and 1 guest