kerryknight / phonegap-revmob-plugin Goto Github PK
View Code? Open in Web Editor NEWUpdate to the official RevMob Phonegap Cordova SDK to enable automatic installation via local Phonegap CLI. Currently for iOS only.
Update to the official RevMob Phonegap Cordova SDK to enable automatic installation via local Phonegap CLI. Currently for iOS only.
The order of the jars on the Project properties / Java Build Path is important: the revmob jar must be on top of the Android main libs.
Also, calling the revmob.startSession is mandatory on Android and not on iOS.
Both things are wrongly referenced on the docs.
The doc say: “Before showing any ads, you must start a RevMob session with your RevMob Media ID.”
Simply calling the revmob = new RevMob("copy your RevMob Media ID here"); will start a session on iOS but will not start a session on Android.
Also the image: http://sdk.revmobmobileadnetwork.com/images/cordova/java-build-path.png
is wrong. It will not work that way, Android 4.0.3 must be selected and revmob jar must be on top.
You write:
I've updated how you start a RevMob session/initialize the SDK. See Installation step #3 below. All other function calls are the same as the official documentation.
I wonder what was the necessary to do so? If I developed the plugin initially I would try to go with the original API:
I think that it's a good practice to just redistribute the archive (revmob-phonegap_cordova-sdk-1.2.0.zip) content. So that users would be able to get included examples and it would be easier for you as a maintainer to upgrade to newer versions of their sdk.
Hello,
I can't seem to get this plugin to work on iOS. I followed the installation instructions on the Github page, but no ads are displayed on my app. My index.html code is as follows:
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<title>Hello World</title>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" charset="utf-8">
function onDeviceReady() {
RevMob.initWithAppId("APP-ID");
}
function onBodyLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
</script>
</head>
<body onLoad="onBodyLoad()">
</body>
</html>
It also appears that the revmob.js file is not loaded in my app. Please let me know what I am doing wrong.
PS: I am using Phonegap 3.5.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.