Monday, February 2, 2015

Android - Phonegap - Cordova - Plugin - AdMob - Intents

I was recently fiddling with the user flow of an Android app.

It's the location based app so what should happen if location is not available?

Let's go to settings and change it'!

Here is how it looks:

(the demo shows going to settings, dialling a number and showing a full screen AdMob advert)




Source: (hosted on gist)

Trivia:
- Searching for the right plugin: https://github.com/Initsogar/cordova-webintent/issues/42
- Android detection code: http://stackoverflow.com/questions/6031412/detect-android-phone-via-javascript-jquery/28236817#28236817