phonegap-plugins

How to add PhoneGap apps at Androids sharing interface

大城市里の小女人 提交于 2020-01-20 06:51:45
问题 I am looking for an interface / PhoneGap plugin (or any idea), to pass images from the gallery directly to the phonegap app. I am already using the cordova camera plugin in my app, however I am looking for a way without selecting images out of the app. To make it a bit more clearly what I am looking for, please see the image below. The app runs on Cordova 3.0. Thanks a lot! Regards, Peter 回答1: The correct definition in the AndroidManifest.xml file is <intent-filter> <action android:name=

How to add PhoneGap apps at Androids sharing interface

有些话、适合烂在心里 提交于 2020-01-20 06:51:44
问题 I am looking for an interface / PhoneGap plugin (or any idea), to pass images from the gallery directly to the phonegap app. I am already using the cordova camera plugin in my app, however I am looking for a way without selecting images out of the app. To make it a bit more clearly what I am looking for, please see the image below. The app runs on Cordova 3.0. Thanks a lot! Regards, Peter 回答1: The correct definition in the AndroidManifest.xml file is <intent-filter> <action android:name=

Not able to launch a pdf file in inappbrowser in android

断了今生、忘了曾经 提交于 2020-01-19 05:42:26
问题 I have a requirement to show a pdf in inappbrowser when user clicks on a link. It is working fine in ios but not working on android. I am using IBM worklight for my project. Below is the code I have used: window.open("pdfURL","_blank","location=yes"); In ios the inappbrowser launches and displays the pdf but in android the inappbrowser is launches but no content is displayed 回答1: Unlike iOS, which has a built-in PDF viewer - Android's webview does not have PDF viewer built-in. This is why it

Ionic statusbar not hiding

早过忘川 提交于 2020-01-17 06:47:20
问题 I have added the plugin Cordova-plugin-statusbar . It was working before I updated ionic and Cordova. After Updating, its not working. I'm totally confused and revert back to the old version, then too its not working! Kindly help me guys! if (window.StatusBar) { StatusBar.hide(); ionic.Platform.fullScreen(); } This is the code I have used to hide! 回答1: Make sure cordova-plugin-statusbar is correctly setup and try this: $ionicPlatform.ready(function() { ionic.Platform.fullScreen(); if (window

Ionic statusbar not hiding

﹥>﹥吖頭↗ 提交于 2020-01-17 06:47:03
问题 I have added the plugin Cordova-plugin-statusbar . It was working before I updated ionic and Cordova. After Updating, its not working. I'm totally confused and revert back to the old version, then too its not working! Kindly help me guys! if (window.StatusBar) { StatusBar.hide(); ionic.Platform.fullScreen(); } This is the code I have used to hide! 回答1: Make sure cordova-plugin-statusbar is correctly setup and try this: $ionicPlatform.ready(function() { ionic.Platform.fullScreen(); if (window

Hello World on PhoneGap Build

大兔子大兔子 提交于 2020-01-17 05:38:48
问题 I am trying to do Hello World (for Android only) at https://build.phonegap.com/apps/. I created a directory. Named it www. Added the following index.html. Zipped it. Then uploaded it to https://build.phonegap.com/apps/ hoping to get back an .apk file. index.html <!doctype html> <html> <head> <title>PG Test</title> </head> <body> Hello World </body> </html> Instead, all I got was this error message. Error Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please

Cordova camera plugin not launching camera

人盡茶涼 提交于 2020-01-17 04:11:45
问题 I've created an Ionic app and I need the camera functionality so that a user can take a picture and send it to a webservice. I've followed the following guide by Ionic. Basically you just cd into your applicatoin cd myApp then you run cordova plugin add org.apache.cordova.camera and once the plugin has been installed, you can invoke it's functionality where ever in your app (because according to Cordova, navigator.camera is a global object). In my case I'm just doing it in one of my

Cordova camera plugin not launching camera

杀马特。学长 韩版系。学妹 提交于 2020-01-17 04:11:14
问题 I've created an Ionic app and I need the camera functionality so that a user can take a picture and send it to a webservice. I've followed the following guide by Ionic. Basically you just cd into your applicatoin cd myApp then you run cordova plugin add org.apache.cordova.camera and once the plugin has been installed, you can invoke it's functionality where ever in your app (because according to Cordova, navigator.camera is a global object). In my case I'm just doing it in one of my

Phonegap Build with phonegap 3 and media plugin

假如想象 提交于 2020-01-17 01:30:10
问题 I work on an application build with phonegap build and phonegap 3. I want to let the user to play some external audio files with the app. But I should have miss something because the media can't be find and play. Here is my 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.phonegap.example" versionCode = "10" version = "1.0.0" > <preference name="phonegap-version" value="3.0.0" /> <!--

Issue with SMS cordova 3.5 plugin for android?

☆樱花仙子☆ 提交于 2020-01-16 18:48:11
问题 I have installed the SMS plugin via CLI, and the installation was done properly. Then I wrote JavaScript code as follows: function sendsms() { alert("click"); var number = $("#numberTxt").val(); var message = $("#messageTxt").val(); var intent = ""; //leave empty for sending sms using default intent var success = function() { alert('Message sent successfully'); }; var error = function(e) { alert('Message Failed:' + e); }; sms.send(number, message, intent, success, error); } HTML code: <input