cordova - How to add app icon within phonegap projects?

I created a new phonegap (v 3.0.0-0.14.0) project with default config.xml and then added iOS and Android platforms.The config contains all the paths to all platform icons.I have overwritten the default icons for iOS and Android so that path and name still matches those pngs.When running in simulator the icons don't show up. I have looked it up in xCode where it tells me that the "Resources" folder for the icons still contains the phonegap default icons. Same with Android.What am I doing wrong?How can I add custom app icons for iOS and Android w...Read more

cordova - How to update existing Phonegap Build app with Phonegap CLI

I am just moving from Phonegap 2.9.0 to 3.2.0 and I am using Phonegap Build. However, I am struggling with the update of my existing apps in the Phonegap Build.When I login through the Phonegap CLI to Phonegap dev site and I typephonegap remote build android iosthe app gets built indeed but the CLI creates another app into my Phonegap Build account and can't find the existing app by matching the id of the app from the config.xml file to the ids of the apps that are already created.I found some config file at .cordova/config.json where you can s...Read more

cordova - How to: PhoneGap Build navigate to web app instead of index.html?

Background(Per this answer and its question) I have a fully responsive web app hosted at http://www.example.com and I just want my mobile app to point the user there.I followed this procedure:$ cordova create myProjectOpen config.xmlChange index.html to http://www.example.comNow I have the following config.xml file.config.xml<?xml version='1.0' encoding='utf-8'?><widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>HelloCordova</name&...Read more

phonegap - Updating an app using Cordova and Codepush

I have a simple content based mobile application for android built using cordova and phonegap. The structure of which is like belowcssimgjsindex.htmlI use codepush https://microsoft.github.io/code-push/ to push over the air content updates to my consumers. Over time the structure of the application becomes cruiseverticaldominatecssimgjsindex.htmlsupport.htmlsync.htmlNow when I want to release an .apk update manually (not through the play store) with the same bundle id and version number (or different version) , with probably only a single plugi...Read more

Phonegap cordova.file is undefined

I have a Phonegap app in which I'm trying to save a file to the device's storage, but after I've included the plugin cordova-plugin-file in the config.xml file, the cordova.file object remains undefined. I am building the app using Phonegap Build using cli cli-6.5.0.Using the Chrome inspector tools, I can see that when I try to log the cordova.file object, it returns undefined, logging cordova returns the cordova object in the log.Here are the logs from the console as described above:The following lines are in my config.xml file:<plugin name...Read more

cordova - Create a Custom AdMob Plugin for Phonegap Build (for iOS and Android)

Everything in my Phonegap Build app is working, including the Analytics and FacebookConnect plugins. However, now I would like to add AdMob ads.Phonegap Build does not provide a built-in plugin for AdMob, but according to the Phonegap Build Plugins page, you can now add your own custom plugins (see Contributing Plugins at the bottom of the page). PhoneGap Plugins can be made compatible with PhoneGap Build with the use of a plugin.xml file...The Phonegap Build Plugins page references the Child Browser plugins.xml on GitHub as an example of how...Read more

cordova - Admob Pro Blank Box(white box) Ad IOS

I m using Admob Pro plugin for ios mobile app using ionic. I m getting a white box instead of Ad. There is no errors in the logwhile showing the Ad.Here is my codethis.admob.createBanner({ adId: bannerId, adSize:'SMART_BANNER', height: 100, autoShow: false, isTesting: false position: this.admob.AD_POSITION.BOTTOM_CENTER ,})return this.admob.showBanner(8);Plugins used cordova-plugin-admobpro 2.31.1 "AdMob Plugin Pro"Please help me out...Read more

cordova - root/jailbreak detection for ionic hybrid mobile app

I'm working on ionic mobile app with Angularjs, and we have added root detector by using cordova-plugin-root-detection and a jailbreak detector by using cordova-plugin-jailbreak-detection. But now for more security, we need to add another root detectors.Is there any plugins / way to do it rather than the plugins that we have already used & mentioned above?Thanks....Read more

cordova - DEEPLINK_HOST in ionic deeplink

I am trying to set up my app to have deeplinks.As mentioend in the ionic native docs here we need to use the following commandionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/What should I enter in the DEEPLINK_HOST parameter.If I provide it my site domain will I have to setup anything on that site?...Read more

typescript - how to add a plugin Cordova-vk in Ionic 3

I want to use this plugin in my appplugin cordova-vkbut I can't connect it to typescript.vkSdk is not definedI understand that it does not locate the plugin. He is in the node_modules folder. How do I connect it to my page?And use his methods.I tried to prescribedeclare let cordovaVk : any;but it didn't help. I know I'm doing something wrong. But I can't figure out what it was.I'm using the latest versions of Cordova and Ionic since I just started the project...Read more

cordova - using Admob native ads in ionic project

I'm working on ionic project. I have integrate Admob by using this plugin cordova-plugin-admobpro, it work perfectly this is the code that i use : //======admob code start============= var admobid = {}; // select the right Ad Id according to platform if( /(android)/i.test(navigator.userAgent) ) { admobid = { // for Android banner: 'ca-app-pub-84538xxxxxxxxxxxxxxxxxx', interstitial: 'ca-app-pub-845xxxxxxxxxxxxxxxxx' }; } else if(/(ipod|iphone|ipad)/i.test(navigator.userAgent)) { admobid =...Read more

cordova - phonegap build error with google adMob in config

my config.xml file<?xml version='1.0' encoding='utf-8'?><widget id="io.onsen.helloworld" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>Onsen UI Project</name> <description> Onsen UI project to create fancy user interfaces for hybrid mobile applications. It uses uses Apache Cordova to help you build an app that targets multiple mobile platforms: Android, iOS, Windows, and Windows Phone. </description> <author email="dev@onsen.io" ...Read more

cordova - PhoneGap Build admob

I have problems with phonegap build , admob not show... How can i show it?This is my js file <script type="text/javascript" src="cordova.js"></script> <script type="text/javascript" src="js/jquery-2.0.3.min.js"></script> <script type="text/javascript" src="js/createjs-2013.09.25.min.js"></script> <script type="text/javascript" src="js/main.js"></script> <script type="text/javascript" src="phonegap.js"></script> <script type="text/javascript" src="js/sounds.js"...Read more

cordova - Set language for ads in Admob

So on this page https://support.google.com/admob/answer/2784738?hl=en they mention the following"AdMob will serve relevant ads to your apps in the appropriate language".How exactly is this accomplished and how can I control (for all users) which language the ads appear in?Using cordova with the admob plugin....Read more