[PLUGIN] CocoonJS Android Back-button

Post your completed addons to share with the community

Post » Tue Feb 17, 2015 1:46 pm

beefor wrote:Hi! I dont know why, but if i add the object CocoonJSBackButton, game starts with infinitely black screen (2.0.2), in version 2.1.1 infinitely black screen also flashes. Please help :((, what i am do wrong

UPD: all ok. it was my bad.



Could you please explain why it was your bad? I am having the same issue. Game starts in a black screen after the Ludei splash logo when using the plugin.
Mind sharing what you did to solve this?
B
7
S
1
Posts: 41
Reputation: 525

Post » Wed Feb 18, 2015 10:12 am

Hello,

Not sure if it is related, but I saw a line that might not be working anymore. Just in case, my recommendation is to update it, because it might affect sooner or later.
As you know, we updated completely our C2 plugin, and the prelude was replaced. In addition, CocoonJS is no longer called like that inside the plugin, the object is called Cocoon.
In the plugin, I saw this: CocoonJS["App"]["setAppShouldFinishCallback"](function ()
It should be: Cocoon.App. exitCallback(function () ... or Cocoon["App"]["exitCallback"](function () ...
Here is the documentation involved: http://doc.ludei.com/3.0.5/Cocoon.App.html#toc5

Regards.
Last edited by ludei on Thu Feb 19, 2015 8:42 am, edited 1 time in total.
B
9
S
4
G
4
Posts: 383
Reputation: 3,616

Post » Wed Feb 18, 2015 12:08 pm

Hi Ludei,
great support once again on your side, thank you very much.

I replaced "CocoonJS["App"]["setAppShouldFinishCallback"](function ()"
with "Cocoon.App. exitCallback(function ()"
in the plugin and now it's working like a charm.

@androidtimo you might consider updating the plugin
B
7
S
1
Posts: 41
Reputation: 525

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests