Add NPM packages for your hooks

We didn’t foresee heavy scripting in the hooks of the project, but from now, you can upload NPM packages alongside your hooks to create complex scripts to be executed.

The structure of the inside of your Zip file should be:

source.zip
 |- www (your app)
 |- config.xml (optional)
 |- hooks (optional)
 |   `- script_example.js
 `- node_modules (optional)
     `- npm_package/

This allows you to modify the AndroidManifest or Xcode configuration files much more easily, for example.

Cocoon Beta Update – Forums, plugins and fixes

The Cocoon Forums are finally available!

We have created categories for all the subjects we think that are interesting for the Cocoon community. The Cocoon forum is the best place to talk to other community users or Cocoon developers, report bugs, make suggestion, contribute tutorials, show your work or just talk about life.

To log in the Cocoon forums you have to use a Cocoon cloud account.

Bug Fixes

Apart from the Forums, we have also been working on some bug fixes that you have reported through the feedback widget or mail:

  • Cordova events in Canvas+: The back button and volume button events were not being correctly dispatched in Canvas+. That’s now fixed.
  • DevApp issues launching files: We have fixed an issue that made the Cordova js files (cordova.js, cordova_plugins.js, etc) not to be available when you launched your app in the Android DeApp from a zip file. This is something we do just in case you haven’t bundled the Cordova files inside your zip file.
  • Canvas+ internal Webview issue: There was an issue in Canvas+ Android that made the Canvas+ internal Webview not to be available. That is now fixed.

Plugins

We have also published some new Cocoon plugins that you might find useful for your developements:

  • Game Center Social iOS: This gives access to the social Game Center API: Game Center login, leaderboards and achievements.
    Game Center, source, doc, api
  • Game Center Multiplayer iOS: This gives you access to the multiplayer Game Center API so your users can play real time multiplayer matches.
    Game Center, source,doc, api
  • Google Play Games Social Android: This gives access to the social Google Play Games API: Google Plus login, leaderboards and achievements.
    Google Play Games, source, doc, api
  • Google Play Games Multiplayer Android: This gives you access to the multiplayer Google Play Games API so your users can play real time multiplayer matches.
    Google Play Games, source, doc, api

Remeber that all these plugins are Open Source and officially supported by the Cocoon Team and you can easily add them to your developments through the “Cocoon” section in the Cocoon cloud plugins interface.

Documentation

We have been working on improving our Documentation. We have added a new specific section for Canvas+ explaining all its special features: screencanvas, texture reducer, internal webview, etc. Hope you find it useful.

So that’s all for the moment, hope you enjoy this new features!

Thanks for using Cocoon!

The Cocoon Team