phonegap-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

Embedding Cordova WebView, Receiver is not registered

我怕爱的太早我们不能终老 提交于 2019-12-07 03:56:14
问题 I have embedded the Cordova WebvView as a component to my project, everything works fine except one thing; when the back button is pressed I get an error on LogCat which says "Receiver Not Registered !" I dont think I have registered a receiver. There is also a sample project on GitHub here. I also get the same error when I run this application. What I want to do is, embed Cordova WebView into my Android project and run some javascript functions. Here is my main activity; public class

Remove splash screen in phonegap for both ios and android

≡放荡痞女 提交于 2019-12-07 03:43:48
问题 I am trying to remove the splash screen completely in the phonegap application for both ios and android. The navigator.hide() function works only after the loading of html page, but i need to remove the splash screen even before that. Please let me know is there any option available for doing this. 回答1: Cordova 1.6.0 – the navigator.splashscreen interface has been removed pending cross-platform support. Now You can use : // to hide cordova.exec(null, null, "SplashScreen", "hide", []) // to

Audio will not play on Android using phonegap, but works fine on iOS

痞子三分冷 提交于 2019-12-07 03:26:53
问题 It works fine on iOS. I have looked many answers including these 2: Play sound on Phonegap app for Android HTML5 audio not playing in PhoneGap App (Possible to use Media?) I have tried all of the solutions: Changing the path to /android_asset/www/ for Android Using .ogg files Pre load the audio with a play() / pause(). Using the Media plugin provided by Cordova/Phonegap Here is my current code: if(device.platform === "Android") //DIFFERENT PATH FOR ANDROID { url = "/android_asset/www/sound

Problems using phonegap / cordova file plugin part 2 - synchronicity

老子叫甜甜 提交于 2019-12-07 02:37:33
I want to add some simple logging capabilities to my cordova app. So I added the file plugin, implemented a super simple log method and tested. My configuration: $ cordova --version 3.5.0-0.2.7 $ cordova plugins org.apache.cordova.file 1.3.0 "File" The test device is a Huawei u8850, running Android 2.3.5 The Logger: window.MyLog = { log: function(line){ window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(FS) { FS.root.getFile('the_log3.txt', {"create":true, "exclusive":false}, function(fileEntry) { fileEntry.createWriter( function(writer) { console.log(line); writer.seek(writer

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

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

Ability to lock orientation of device with JavaScript in PhoneGap/Cordova

落爺英雄遲暮 提交于 2019-12-06 15:45:25
问题 I'm looking for a way to programatically lock the orientation of a device in a PhoneGap/Cordova application using JavaScript for certain pages only. I am aware that in can be locked globally in the config.xml file but I am searching for a solution that supports both iOS and Android whereby I can lock the orientation using a checkbox/radio control on a single page in my App. I have found some possible Cordova plugins but they are all Android only. I am willing to write a Cordova/PhoneGap

Zoom in zoom out in phoneGap for iOS

杀马特。学长 韩版系。学妹 提交于 2019-12-06 12:37:19
问题 I am developing an learning type application for iOS using HTML5/PhoneGap, but facing some problem in zoom in zoom out features. As I know PhoneGap runs app inside the UIwebview. so Zoom in Zoom out feature should work automatically in PhoneGap, but it is not working, although it works on Safari browser. Could some please guide how can I implement this feature. Although I also set uiwebview mutitouch enabled. inside mainviewcontrollers webviewdidfinish loading.. [theWebView

FacebookConnect plugin with phonegap adobe build not working

左心房为你撑大大i 提交于 2019-12-06 12:22:48
问题 I have a Phonegap projct which is being built with adobe build. I want to integrate FacebookConnect as per this git / tutorial page : https://github.com/phonegap-build/FacebookConnect This is my adobe build config.xml : <?xml version="1.0" encoding="UTF-8"?> <widget xmlns= "http://www.w3.org/ns/widgets" xmlns:gap= "http://phonegap.com/ns/1.0" id= "com.TomBers.foodidapp" version = "0.0.1"> <cordova> <preference name="KeyboardDisplayRequiresUserAction" value="true" /> <preference name=