cordova

cordova is not defined - cordova.js has already been loaded :: Ionic

穿精又带淫゛_ 提交于 2020-01-24 17:43:29
问题 During the app running, this is what I get: Uncaught ReferenceError: cordova is not defined ionic-core.js:466 Ionic Core: init ionic-core.js:145 Ionic Core: searching for cordova.js ionic-core.js:149 Ionic Core: cordova.js has already been loaded Now this is making me confused but I assume that Ionic is trying to load cordova before it is defined. However, this prevents me from using other services that rely on this condition, so my question is, is there a way to load cordova async or what

Phonegap GA plugin not working

对着背影说爱祢 提交于 2020-01-24 17:00:52
问题 I am using phonegap 3.3 to build android app locally and trying to use the GA plugin I have installed the GAplugin using phonegap local plugin add https://github.com/phonegap-build/GAPlugin.git Added this code in my index. var gaPlugin; document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { alert("calling ga"); gaPlugin = window.plugins.gaPlugin; alert("calling init") gaPlugin.init(successHandler, errorHandler, "UA-48220634-1", 1); gaPlugin.trackPage(

document.referrer exists but is always empty

核能气质少年 提交于 2020-01-24 15:12:12
问题 I am working on a mobile application on iOS 8. document.referrer seems to always be empty. I have tried to check if it exists by using: if( 'referrer' in document ) { alert('referrer ' + document.referrer); } and it throws an alert, but the value is always empty, whether I am accessing it from another page or if I am accessing the page for the first time. I have also included the meta tag: <meta name="referrer" content="always"> How do I get the value of document.referrer? EDIT: I also forgot

Where to save the local DB created for iphone app?

谁说我不能喝 提交于 2020-01-24 12:55:05
问题 I have developed a app that loads fully static content . I am storing data more than 4 mb of size. With out this content the app will not work. In my case where should i save the local database(documents folder or library folder). My app got rejected since it was backed up for iCloud storage. 1) Where should i save the database? In Library folder or inside Documents folder? 2) Since apple rejected my app i believe that I should not backup the database for iCloud. Please correct me if i was

Does UUID change when factory reset, in Phonegap android

主宰稳场 提交于 2020-01-24 12:05:31
问题 I depends on device.uuid to control my users, Does UUID change when factory reset, in Phonegap android. 回答1: device.uuid on android it gets the native android.provider.Settings.Secure.ANDROID_ID According to the docs A 64-bit number (as a hex string) that is randomly generated when the user first sets up the device and should remain constant for the lifetime of the user's device. The value may change if a factory reset is performed on the device. Note: When a device has multiple users

Video transcoding problem in IONIC with iOS 13.0

依然范特西╮ 提交于 2020-01-24 09:34:25
问题 We have an existing IONIC App and since iOS 13.0 has been released we ran into a problem with transcoding videos. When file path is read from camera.getPicture (with sourceType=PHOTOLIBRARY), and passed to videoEditor.transcodeVideo(), it indefinitely keeps calling the progress callback with value 0. It won’t throw any error and it won’t call the Completed callback. videoEditor.transcodeVideo() does not work on several real iPhone devices with iOS 13.0 +. I tried the same code on a simulator

GCM Android notification received on device but not displaying

纵然是瞬间 提交于 2020-01-24 09:27:18
问题 GCM Cloud messaging notifications for my Ionic Android app are not appearing in my device's home screen, despite the notification registering in the app itself. I'm using the npm module node-gcm to send push notifications. var gcm = require('node-gcm'); var message = new gcm.Message({ priority: 'high', contentAvailable: true, delayWhileIdle: true, timeToLive: 10, dryRun: false, data: { key1: 'message1', key2: 'message2' }, notification: { title: "Hello, World", body: "This is a notification

ionic cordovaSQLite plugin error Cannot read property 'openDatabase' of undefined

跟風遠走 提交于 2020-01-24 08:36:25
问题 I have 1 issue in ngCordova plugin cordovaSQLite. Below code: var db = $cordovaSQLite.openDB({ name: "myDB.db" }); i'm using "ionic serve" for run project in browser. error: Uncaught TypeError: Cannot read property 'openDatabase' of undefinedng-cordova.js:5058 openDBapp.js:27 (anonymous function)ionic.bundle.js:37388 (anonymous function)ionic.bundle.js:2241 onPlatformReadyionic.bundle.js:2220 onWindowLoad [Main error] http://i.stack.imgur.com/Yctpl.png Could you please help me? 回答1: As stated

How Cordova support Network Security Config introduced by Android 7.0?

亡梦爱人 提交于 2020-01-24 05:40:26
问题 Android 7.0 intorduced Network Security Config to support use custom CAs, but how Cordova support that? I can not find any hint from docs of Cordova. 回答1: You can achieve this by adding the edit-config tag to the Android platform in your config.xml , this is supported by Cordova Android Plugin v7.0. You will need to create the Network Security Config file that you would create for a native Android application using the examples from Google. Next in the Cordova config.xml you can use the edit

Webview bounce in windows phone 8

只谈情不闲聊 提交于 2020-01-24 05:26:04
问题 I need to know if there is any way I can control the webview bouncing property in windows 8.I have tried -ms-touch-action: none; it does stop the bouncing but it disables the whole scrolling in the App. I have tried the following but these doesn't work:- <meta name="msapplication-tap-highlight" content="no" /> backface-visibility:hidden; -webkit-backface-visibility:hidden; overflow: hidden; -ms-content-zooming: none; So please let me know if there is any other methods for controlling the