Created
September 28, 2012 19:06
-
-
Save revmob-sdk/3801573 to your computer and use it in GitHub Desktop.
Cordova/Phonegap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<cordova> | |
<access origin=".*"/> | |
<log level="DEBUG"/> | |
<preference name="useBrowserHistory" value="false"/> | |
<preference name="exit-on-suspend" value="false"/> | |
<plugins> | |
<plugin name="App" value="org.apache.cordova.App"/> | |
<plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/> | |
<plugin name="Device" value="org.apache.cordova.Device"/> | |
<plugin name="Accelerometer" value="org.apache.cordova.AccelListener"/> | |
<plugin name="Compass" value="org.apache.cordova.CompassListener"/> | |
<plugin name="Media" value="org.apache.cordova.AudioHandler"/> | |
<plugin name="Camera" value="org.apache.cordova.CameraLauncher"/> | |
<plugin name="Contacts" value="org.apache.cordova.ContactManager"/> | |
<plugin name="File" value="org.apache.cordova.FileUtils"/> | |
<plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/> | |
<plugin name="Notification" value="org.apache.cordova.Notification"/> | |
<plugin name="Storage" value="org.apache.cordova.Storage"/> | |
<plugin name="Temperature" value="org.apache.cordova.TempListener"/> | |
<plugin name="FileTransfer" value="org.apache.cordova.FileTransfer"/> | |
<plugin name="Capture" value="org.apache.cordova.Capture"/> | |
<plugin name="Battery" value="org.apache.cordova.BatteryListener"/> | |
<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/> | |
<plugin name="Echo" value="org.apache.cordova.Echo"/> | |
<plugin name="RevMobPlugin" value="com.revmob.cordova.RevMobPlugin"/> | |
</plugins> | |
</cordova> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Cordova</title> | |
<script type="text/javascript" charset="utf-8" src="cordova-2.1.0.js"></script> | |
<script type="text/javascript" charset="utf-8" src="revmob.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
var revmob = null; | |
function onDeviceReady() { | |
revmob = new RevMob("4f56aa6e3dc441000e005a20"); | |
} | |
function onBodyLoad() { | |
document.addEventListener("deviceready", onDeviceReady, false); | |
} | |
function defaultSuccessCallback(params) { | |
} | |
function defaultErrorCallback(params) { | |
} | |
</script> | |
</head> | |
<body onLoad="onBodyLoad()"> | |
<h1>RevMob</h1> | |
<button onclick="revmob.setTestingMode(true, defaultSuccessCallback, defaultErrorCallback);"> | |
Set Testing mode | |
</button><br /> | |
<button onclick="revmob.setTestingMode(false, defaultSuccessCallback, defaultErrorCallback);"> | |
Disable Testing mode | |
</button><br /> | |
<button onclick="revmob.showFullscreen(defaultSuccessCallback, defaultErrorCallback);"> | |
Show Fullscreen | |
</button><br /> | |
<button onclick="revmob.showPopup(defaultSuccessCallback, defaultErrorCallback);"> | |
Show Popup | |
</button><br /> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment