Consider Cocoon if XDK is not working (updated)

Discussion and feedback on Construct 2

Post » Tue Feb 07, 2017 11:30 am

interesting about the unsupported stuff.. Definitely something to think about when troubleshooting.
B
59
S
9
G
1
Posts: 970
Reputation: 6,611

Post » Fri Mar 31, 2017 4:18 am

As far as I can tell Cocoon doesn't work with Construct 2's Browser object. I tried building with Webview+ but the buttons that launch URLs, and work on the PC and with Intel XDX, don't work with Webview+.

The code works on PC and with Intel XDX but the same exact code doesn't work with Webview+.

I would love to use Canvas+ and I have nothing against using Cocoon's Canvas+ plugin for a Browser in game and for using Canvas+ to build, but Canvas+ doesn't support buttons and text boxes.

I'm not going to make more work for the artist in my friends' and I group, so I'm sticking with buttons, and we need text boxes because we have player lives and a player's score. So Canvas+ won't work.

Is there anyway to let Construct 2's Browser object work with Webview+ ?
B
20
S
7
G
3
Posts: 302
Reputation: 3,634

Post » Fri Mar 31, 2017 4:45 am

It does work fine. Just install the "inappbrowser" plugin to your cocoon project.

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
109
S
40
G
31
Posts: 1,177
Reputation: 29,418

Post » Thu Apr 13, 2017 4:32 pm

@Phoenixbowman

The browser object does work with Webview+, you just have to add a couple of plugins and lines of code to config.xml to get it to work.

As @AndreasR said, you need to add the 'inappbrowser' plugin and you need to add the 'whitelist' plugin as well. Also, you need to add the following code to your config.xml, just copy and paste the lines below.

<access origin="*"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
<platform name="android">
<allow-intent href="market:*"/>
<preference name="enabled" value="true"/>
</platform>


I had the same issue but this worked for me and haven't had any issues with since.
Image ImageImage
B
7
S
2
G
1
Posts: 95
Reputation: 1,249

Post » Tue Nov 21, 2017 10:28 am

Okay guys, quick and simple: I am trying to wrap my game via Cocoon but all the tuts are outdated or/and contradictory and whatever I do or try I keep getting a "Andoird devapp compilation failed" error and this is as far as it goes. Do anybody has a valid UP TO DATE tuts on the matter?
Image
Image
B
9
S
2
G
1
Posts: 36
Reputation: 643

Post » Tue Nov 21, 2017 10:35 am

Hi @Niespor

my guide is up to date.
https://shatter-box.com/knowledgebase/cocoonio/

About your problem. Have you any illegal chars in your file name or object names in construct 2?

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
109
S
40
G
31
Posts: 1,177
Reputation: 29,418

Post » Tue Nov 21, 2017 10:37 am

AndreasR wrote:Hi @Niespor

my guide is up to date.
https://shatter-box.com/knowledgebase/cocoonio/

About your problem. Have you any illegal chars in your file name or object names in construct 2?

Regards
Andy

of course not. I'll check that tut right away. Thank you =)
Image
B
9
S
2
G
1
Posts: 36
Reputation: 643

Post » Tue Nov 21, 2017 10:42 am

Niespor wrote:
AndreasR wrote:Hi @Niespor

my guide is up to date.
https://shatter-box.com/knowledgebase/cocoonio/

About your problem. Have you any illegal chars in your file name or object names in construct 2?

Regards
Andy

of course not. I'll check that tut right away. Thank you =)


You're welcome.
Does the live built work? Or do both result in an error, developer app and live built?

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
109
S
40
G
31
Posts: 1,177
Reputation: 29,418

Post » Tue Nov 21, 2017 10:44 am

I am not sure why, but I don't find Cocoon too user-friendly. I use Cordova CLI for my apps still. I tried cocoon again recently to find out they nerfed the free accounts to the point my account was unusable (I had several projects, going over the limit). This was not a nice experience for me. It is also not too clear what some of the UI components mean when compiling your app.

Hopefully it gets improved on, but for now, I will stick with Cordova. It only takes 3-4 minutes to compile your own app and sign it.
B
46
S
20
G
9
Posts: 545
Reputation: 9,315

Post » Tue Nov 21, 2017 11:01 am

AndreasR wrote:You're welcome.
Does the live built work? Or do both result in an error, developer app and live built?


I haven't tried the live build, got stuck at the dev one. Sadly - still stuck. I followed your guide word-by-word and still end up with the same error. But its worth to note that I have no such problems when building with PhoneGap (quite frankly, I had like 5 builds done just today with PhoneGap).

humanescape wrote:I am not sure why, but I don't find Cocoon too user-friendly. I use Cordova CLI for my apps still. I tried cocoon again recently to find out they nerfed the free accounts to the point my account was unusable (I had several projects, going over the limit). This was not a nice experience for me. It is also not too clear what some of the UI components mean when compiling your app.
Hopefully it gets improved on, but for now, I will stick with Cordova. It only takes 3-4 minutes to compile your own app and sign it.


Cordova CLI? What's that? Sorry, it's been years since I've made a mobile game with C2.

PhoneGap is the easiest I've found so far and the one I am using currently. The problem with PhoneGap is its huge default size and rather shitty performence on older devices. Hence I'm looking for something better.

EDIT:
Goggled 'Construct 2 Cordova CLI" and holy shit 30+ minutes long tutorial :D
https://www.google.pl/search?num=100&ei ... GgNh_rlaUc

Suddenly PhoneGap sounds awesome lol.
Image
B
9
S
2
G
1
Posts: 36
Reputation: 643

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests