These plugins for Construct 2 are adapted from the Atomic Plugins for Cordova. They can be used in Construct 2, but they can't be tested on it. They require an exportation for cordova and additional plugin installations.
- Configuration
- Installation
- Adding a plugin to a project after exportation
- Important information to take into account
- Need help?
- Changelog
- License
The plugin can be configured by selecting the object "Cocoon Ads" from the "Object types" list inside Construct 2.
The plugin is added by selecting the object "Cocoon InApps" from the "Object types" list inside Construct 2.
The plugin is added by selecting the object "Cocoon Share" from the "Object types" list inside Construct 2.
The plugin is added by selecting the object "Cocoon CanvasPlus" from the "Object types" list inside Construct 2.
This plugin will only work inside Canvas+ webview engine in Cocoon.io cloud compiler.
This plugin is divided in three different parts, one of each social service available.
The plugin is added by selecting the object "Cocoon GameCenter" from the "Object types" list inside Construct 2.
The plugin is added by selecting the object "Cocoon GooglePlayGames" from the "Object types" list inside Construct 2.
Work in progress
### Manual installation
- Close Construct 2
- Checkout the 'master' branch from this repository. You will see several folders, one called "common" and one more for each of the available plugins.
- Copy the folder which is inside the name of the plugin. They will always start by "cocoon". For example, inside "ads" there is one called "cocoon-ads".
- Paste the whole folder into CONSTRUCT_2_INSTALLATION_FOLDER\exporters\html5\plugins.
And that's all! You can open Contruct2 to start using them!
After the cordova exportation and the creation of the project, one of the following plugins are needed, depending on the Ad Service you want to use.
If you are using the CLI, copy and paste the command for installing the plugin in your project.
If you are using the new Cocoon.io cloud compiler, select the plugin id from the plugin list in the project configuration and the plugin will be intalled automatically.
- Android
cordova plugin add cocoon-plugin-ads-android-admob;
- iOS
cordova plugin add cocoon-plugin-ads-ios-admob;
- Android
cordova plugin add cocoon-plugin-ads-android-mopub;
- iOS
cordova plugin add cocoon-plugin-ads-ios-mopub;
In addition, there are optional MoPub adapters for iOS and Android.
- Android
cordova plugin add cocoon-plugin-ads-android-adcolony;
cordova plugin add cocoon-plugin-ads-android-admob;
cordova plugin add cocoon-plugin-ads-android-charboost;
cordova plugin add cocoon-plugin-ads-android-greystripe;
cordova plugin add cocoon-plugin-ads-android-inmobi;
cordova plugin add cocoon-plugin-ads-android-millennial;
- iOS
cordova plugin add cocoon-plugin-ads-android-adcolony;
cordova plugin add cocoon-plugin-ads-ios-mopub-admob;
cordova plugin add cocoon-plugin-ads-ios-mopub-charboost;
cordova plugin add cocoon-plugin-ads-ios-mopub-millennial;
After the cordova exportation and the creation of the project, one of the following plugins are needed, depending on the Store you want to use.
If you are using the CLI, copy and paste the command for installing the plugin in your project.
If you are using the new Cocoon.io cloud compiler, select the plugin id from the plugin list in the project configuration and the plugin will be intalled automatically.
cordova plugin add cocoon-plugin-inapps-android-googleplay;
cordova plugin add cocoon-plugin-inapps-android-amazon;
cordova plugin add cocoon-plugin-inapps-ios-appstore;
After the cordova exportation and the creation of the project, it is required to install the following plugin for cordova.
If you are using the CLI, copy and paste the command for installing the plugin in your project.
If you are using the new Cocoon.io cloud compiler, select the plugin id from the plugin list in the project configuration and the plugin will be intalled automatically.
cordova plugin add cocoon-plugin-share;
No additional plugins are required after exportation unless the sharing methods are used. If so, please, install the Native share plugin.
After the cordova exportation and the creation of the project, one of the following plugins are needed, depending on the Social Service you want to use.
If you are using the CLI, copy and paste the command for installing the plugin in your project.
If you are using the new Cocoon.io cloud compiler, select the plugin id from the plugin list in the project configuration and the plugin will be intalled automatically.
cordova plugin add cocoon-plugin-social-ios-gamecenter;
cordova plugin add cocoon-plugin-social-android-googleplaygames --variable APP_ID=the_app_id;
As you can see, an additional parameter is required:
- APP_ID: The id provided by google play games.
Work in progress.
You can use these plugins in Cocoon.io cloud compiler or using the CLI. They won't work in the old compiler or inside Construct2 without exportation.
Visit our help center.
- UserID, UserName and UserImage expressions added to Google Play Games.
- RequestImage action added to Google Play Games. It is necessary to call it first for using the UserImage expression.
- Plugins renamed to "Cocoon".
- Fix for the preview added.
- Atomic plugins for Social integration added (Game Center and Google Play Games).
- Webdialog, Device, App and Utils method added in Cocoon Canvas+ plugin.
- Atomic plugins for Native share added.
- Cocoon Canvas+ legacies added (Keyboard, open URL, exit, confirm, capture screen,...).
- Common folder removed, no longer required.
- Repository moved to CocoonIO.
- Adcolony adapter for iOS added.
- Purchase events fixed for InApps.
- Demo for InApps added.
- Atomic Plugins for InApps added.
- Supported Stores: Google Play, Amazon App Store and Apple App Store.
### Mar 11, 2015
- Demo for Ads added.
### Mar 06, 2015
- Atomic Plugins for Ads added.
- Supported Ad Services: Mopub and Admob.
Mozilla Public License, version 2.0
Copyright (c) 2015 Ludei
See MPL 2.0 License