cordova-plugins

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

杀马特。学长 韩版系。学妹 提交于 2019-12-07 03:56:58
问题 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

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

 ̄綄美尐妖づ 提交于 2019-12-07 03:33:47
问题 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

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

房东的猫 提交于 2019-12-07 02:32:29
问题 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

How to force cordova to recompile added plugins?

寵の児 提交于 2019-12-06 17:30:32
问题 It seems cordova caches compiled plugins, when i change the source code of plugins ( .java files on windows), the only way to force cordova to recompile the plugin is to remove and then add that plugin again, which is a pain . Is there any way to clean cordova cache or force it to recompile added plugins ? 回答1: Not afaik, the only workaround I've found is to use a before_prepare script to remove and add the plugin every time you prepare the app: / |--hooks/ |--before_prepare/ |--000

Cordova permissions requires android.permission.READ_CONTACTS, or grantUriPermission()

牧云@^-^@ 提交于 2019-12-06 16:37:36
I'm using Cordova 5.3.1 When i use contactsprovider.PickContact, it returns the following error Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/raw_contacts from pid=7739, uid=10141 requires android.permission.READ_CONTACTS, or grantUriPermission() My androidmanifest.xml is: <?xml version='1.0' encoding='utf-8'?> <manifest android:hardwareAccelerated="true" android:versionCode="100009" android:versionName="1.0.1" package="io.cordova.myapp557da2" xmlns:android="http://schemas.android.com/apk

Cannot read the property 'type' of undefined error in cordova network plugin

痞子三分冷 提交于 2019-12-06 15:55:08
I am developing android application using cordova and ionic framework,using network plugin from here ( https://github.com/apache/cordova-plugin-network-information ). But the device ready alert fires off and then I get the the following error. "TypeError: Cannot read property 'type' of undefined Here is navigator object navigator.connection.type I will get error in following line. use mine document.addEventListener("deviceready", onDeviceReady, false); // Cordova is ready function onDeviceReady() { checkConnection() } function checkConnection() { networkState = navigator.connection.type; var

Cordova PushPlugin onNotification ecb not fired

╄→гoц情女王★ 提交于 2019-12-06 14:50:26
myApp.services.factory('GCMHelper', ($q)-> pushNotification = {} _init = ()-> defer = $q.defer() ionic.Platform.ready(()-> pushNotification = window.plugins.pushNotification; window.onNotification = (res)-> console.log('onNotification', res) defer.resolve() ) return defer.promise return { register: ()-> _init().then(()-> pushNotification.register( (res)-> console.log('gcm register success', res) (err)-> console.log('gcm register err', err) { "senderID": "*********", "ecb": "onNotification" } ); ) } ) in controller: GCMHelper.register() (Please excuse my poor English) I'm tring Cordova

Add PhoneGap app to “share” menu on Android and IOS

坚强是说给别人听的谎言 提交于 2019-12-06 14:34:57
I am wondering whether it is possible to add my PhoneGap application to android and ios "share" screens. This is basically what i am talking about: User is on Chrome and wants to share a particular page url Instead of copying the link into the clipboard and manually running the app, the user can select the "share" option and choose my application from the list I am using PhoneGap Build service to build my application. I have been searching online and here on StackOverflow and there are plugin solutions for android but i can't seem to find anything for ios. Plus, the solutions i found are for

Do I need to register to APNs to use GCM Push notifications in iOS?

烈酒焚心 提交于 2019-12-06 11:26:16
I am building a hybrid APP with cordova. I am using the phonegap-plugin-push to register to GCM so i can push notifications to Android. My question is if i need the APNs certificates to be able to use GCM in iOS, or if with the plugin alone and the registration to GCM is enough? AL. Short answer, Yes. You must then upload your APNs Certificate to GCM. Check out this Route 85 video about Sending Notifications on iOS through GCM . Other useful links for you: https://developers.google.com/cloud-messaging/ios/start https://developers.google.com/cloud-messaging/ios/client https://developers.google

Ionic app shows white screen on android 4 versions

社会主义新天地 提交于 2019-12-06 11:09:53
I am developing ionic application which works fine in browser as well in android 5 versions but when i try to install my same apk in andriod 4 versions it simply displays white screen doesnt show up anything. i had tried installing crosswalk, whitelist and splash screen plugins after installing all plugins i am unable to build. i am attaching the screenshots of installed plugins and build error please help where i am going wrong. Please find the image where i installed the plugins Also, Please find the error i am getting while building the app. Please find the build error image I am having the