Cordova / PhoneGap
See how Ziggeo can be used to build hypbrid apps with Cordova / Phonegap
Prerequisites
Ensure the following base plugins have been installed:
- cordova-plugin-file
- cordova-plugin-media-capture
- cordova-plugin-camera
- cordova-plugin-whitelist
- cordova-plugin-android-permissions
Also make sure to grant the application access to storage, camera and microphone on the device.
Demo
We have open-sourced a demo application on Github.
Sample App
Using Version 2 of the JavaScript SDK
Here is a sample index.html
:
<!DOCTYPE html>
<html>
<head>
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport"
content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width" />
<link rel="stylesheet" href="https://assets.ziggeo.com/v2-{%= JAVASCRIPT_REVISION %}/ziggeo.css" />
<script src="https://assets.ziggeo.com/v2-{%= JAVASCRIPT_REVISION %}/ziggeo.js"></script>
<script>window.ziggeoApp = new ZiggeoApi.V2.Application({
token: "{%= APPLICATION_TOKEN %}"
});</script>
<title>Ziggeo Cordova Demo</title>
</head>
<body>
<h1>Ziggeo Cordova Demo</h1>
<ziggeorecorder ziggeo-width="320" ziggeo-height="240" ziggeo-theme="modern" ziggeo-themecolor="red"></ziggeorecorder>
<script src="cordova.js"></script>
</body>
</html>