cordova-plugins

How to get IMEI Number in Cordova?

陌路散爱 提交于 2019-12-05 10:30:33
I am developing an application in Cordova which requires to get the IMEI number of any device programatically. Cordova Provides the UUID number but that won't work for me, I need IMEI number. Or is there any plugin to get the IMEI Number directly? "IMEI PhoneGap Plugin in Android" it gives custom plugin that only work for the android I need plugin which support for both android as well as ios. "How to programmatically get the devices IMEI/ESN in Android" it gives java code for the android so how do I convert java code in angularjs? Is there any plugin available or not? It simple as that.

Cannot get Cordova text-to-speech plugin to work

孤者浪人 提交于 2019-12-05 10:23:31
I'm trying various plugins for TTS, including the one at https://github.com/vilic/cordova-plugin-tts , but cannot get any to work. For this one, for example, according to the docs, its usage should be: TTS .speak('hello, world!', function () { alert('success'); }, function (reason) { alert(reason); }); but I get 'TTS not defined'. Also tried 'navigator.TTS....' but still no good. Also I'm unsure whether I need to include the tts.js in the package; if so I get 'exports not defined'. If anyone is successfully using this plugin, please can you put me in the correct direction? Or if there's an

how do you export a file out of iOS when using cordova file plugin?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 08:43:18
I'm using https://github.com/apache/cordova-plugin-file on an iOS device and I'm attempting to write files. I can write files ok but according to the iOS file system layout, all of these locations where I write are private. I'm guessing this is due to Apple's sandbox security model so that each app can only see files within its own bundle. This is different on Android where the cordova.file.externalRootDirectory location is NOT private. My question is: How do you export this file out of an iOS device? The file that I'm writing contain a long list of GPS locations captured by the Cordova app I

ionic 2 - inappbrowser “browser.on(…).subscribe is not a function” error

自古美人都是妖i 提交于 2019-12-05 08:30:27
I follow this http://ionicframework.com/docs/native/in-app-browser/ document for use inappbrowser and try with below steps : 1- install ionic cordova plugin add cordova-plugin-inappbrowser npm install --save @ionic-native/in-app-browser 2 - Add this plugin to app.module.ts provider 3 - add to constructor : constructor(private iab: InAppBrowser) { } 4- and use it in launch method like this : import { InAppBrowser,InAppBrowserEvent} from '@ionic-native/in-app-browser'; launch(urlc){ let url = 'https://example.com/'; let browser = this.iab.create(url, '_blank', 'location=yes'); browser.on(

Why low resolution video (480x360) recording on iOS with Ionic cordovaCapture (Apache Cordova media capture plugin)?

南楼画角 提交于 2019-12-05 08:21:32
On an Ionic project I am recording videos with cordova capture plugin which in fact is based on Apache media-capture plugin . Android users can choose video dimensions, but on iOS there are no buttons for that. I am testing with an iPhone 5 which records in 1920x1080, but with my Ionic app videos are 480x360, notice also aspect ratio is 4:3 no 16:9. I want at least a 720p video dimensions . I read plugin documentation and there are only three options; duration and limit. Does it means is not possible to set the dimensions of the video? var options = { limit: 1, duration: 15, quality: 1 // Only

How do I add a variable to a phonegap plugin with Meteor?

我的梦境 提交于 2019-12-05 07:34:25
I have a plugin, https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin , that I would like to use with Meteor. I added the GIT repo to app/.meteor/cordova-plugins . The plugin requires a variable to be passed to it when it's installed. How would I add that variable? I added this to mobile-config.js : // Pass preferences for a particular PhoneGap/Cordova plugin App.configurePlugin('nl.x-services.plugins.launchmyapp', { URL_SCHEME: 'mycoolapp' }); App.setPreference("URL_SCHEME", "mycoolapp"); I am still getting the error that states that the variable URL_SCHEME is missing. I will post a

console.log is not working in iOS Phonegap App even after adding the console plugin

一曲冷凌霜 提交于 2019-12-05 07:06:33
I have created a Phonegap iOS App in Cordova CLI . I have added the console plugin and yes deviceready is called successfully but console.log is not working and does not print any thing in XCode log. Plugin Installation :- cordova -v 3.3.1-0.3.1 sudo cordova plugins add org.apache.cordova.console Fetching plugin "org.apache.cordova.console" via plugin registry Starting installation of "org.apache.cordova.console" for ios Preparing ios project org.apache.cordova.console installed on ios. sudo cordova plugins ls [ 'org.apache.cordova.console', 'org.apache.cordova.device', 'org.apache.cordova

Phonegap Error: “An error occurred while listing Android targets” while installing Phonegap on Ubuntu

谁都会走 提交于 2019-12-05 06:14:12
http://cordova.apache.org/docs/en/3.3.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide As metioned in the above doc, I have already installed the required software for Phonegap as I have getting versions: For Java: $ java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) For ANT $ ant -version Apache Ant(TM) version 1.8.2 compiled on December 3 2011 For Node.JS $ npm -version 1.4.3 Now, the problem is when I create a phonegap project for Android like this "$ cordova create

Reading ionic www/config.xml file from device

…衆ロ難τιáo~ 提交于 2019-12-05 06:02:40
I am having trouble reading the www/config.xml file from Android device. I tried two different approaches. First, I tried using the $http service which was recommended in another thread to do. When that did not work I then tried to use the Cordova file plugin. The reason I am doing this is to try to get the version number from the www/config.xml file in the app. Below are both approaches: 1) $http.get() url = 'file:///android_asset/www/config.xml' $http.get(url) .then ((data) -> versionNumber = data.data.match(/<widget\s.*?\sversion=['"]([^'"]+)['"]/) verNum = versionNumber[1] ), (err) -> # {

cordova-plugin-whitelist working on Android but not iOS (Phonegap Build)

喜夏-厌秋 提交于 2019-12-05 06:00:22
I'm working on a JavaScript app wrapped in Cordova and built with Phonegap Build. We're including cordova-plugin-whitelist from npm in our build and have added <access origin="*" /> to our config.xml and an open CSP ( <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"> ) in our index.html. The app works fine on Android and talks to our server without issues, but on iOS all requests fail immediately as if the whitelist plugin isn't letting traffic through. I've tried a number of different build