Jump to content

Open link with Cocoon JS not working


Ninjadoodle
 Share

Recommended Posts

Hi guys

 

Has anyone been able to successfully open an external link using CocoonJS and Panda?

 

I've included the file (tried both the manual way and using the Panda plugin) and used ...

 

Cocoon.App.openURL('http://www.ludei.com');

 

All I get is errors, as if Cocoon JS was trying to load the websites graphics into the wrapper, instead of opening a window.

 

The Cocoon JS staff tell me it's working fine in their demos, so I'm lost.

 

Any advice would be appreciated!

 

Thank you!

Link to comment
Share on other sites

Hi, i had same issue like you. Make sure, you using latest 
 
I use this code in my game:
this.btnFacebook.click = this.btnFacebook.tap = function () {        if (navigator.isCocoonJS) {            Cocoon.App.openURL("https://www.facebook.com/pexesomemorygame");        } else {            window.open("https://www.facebook.com/pexesomemorygame");        }      };

Good luck.

Link to comment
Share on other sites

Hi @Wraithi

 

Thank you VERY much, for making the sample! I really appreciate your help :)

 

Your example works perfectly, but for some reason mine still doesn't. There are no differences as far as I can tell.

 

I've even tried copying your engine and cocoon files just to be sure.

 

I'm going to have to make a new folder and start pasting in things from scratch until I hit an error.

 

Thank you heaps again!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...