-
Notifications
You must be signed in to change notification settings - Fork 15
Plugins usage
Guillaume Gendre edited this page Jun 7, 2019
·
6 revisions
To use a plugin in your project you will have to download and add it in your iOS project, your Android project and your web folder.
- Git clone the repository
Plugins-[myPluginName]-Android
in a folder in your Android project. - Import the plugin module into your project:
- Select File > Import Module...,
- Browse to the plugin directory and click Choose,
- Click Finish to import the module.
Alternatively, edit your project settings.graddle
and your app build.graddle
.
- Git clone the repository
Plugins-[myPluginName]-iOS
in a folder of your iOS project folder. - Add it to your XCode project
- Drag&drop the plugin folder containing the plugins classes (.h & .m) to the framework folder of your project and select "create groups".
-
Git clone the repository
Plugins-[myPluginName]-Web
in a folder of your web folder. -
Load the plugin javascript file after the cobalt one :
<script type="text/javascript" src="../platform/cobalt.min.js"></script> <script type="text/javascript" src="js/plugins/cobalt.[myPluginName].js"></script>
Check out each plugin documentation for any further configuration.
Cobalt is an Open-Source Hybrid Mobile Framework. Read more about it on the home page or in the documentation
- Introduction to Cobalt navigation
- The cobalt.json file
- native navigation bars
- Handling the Android back button
- Introduction to Cobalt messages
- Publish/Subscribe on the Web side
- Publish/Subscribe on Android
- Publish/Subscribe on iOS
- Web Lifecycle messages
- Pull-To-Refresh and Infinite Scroll
- Custom alerts and Toasts
- LocalStorage
- OpenExternalUrl
- PlatformInfos
- Ajax
- Removing the top bar
- Adding Cobalt to an existing project
- Customizing your hybrid views
- Handle multiple Cobalt webviews on the same screen (TODO)