phonegap-plugins

pause event is not working properly in PhoneGap iPhone?

让人想犯罪 __ 提交于 2019-12-10 17:10:44
问题 This is my code //This is an event that fires when a PhoneGap application is put into the background. document.addEventListener("pause", onPause, false); //This is an event that fires when a PhoneGap application is retrieved from the background. document.addEventListener("resume", onResume, false); // Handle the pause event function onPause(){ console.log("pause : app is put into background"); } // Handle the resume event function onResume() { console.log("resume : app is put into foreground"

Can't upload base64 image using cordova-plugin-file-transfer

一个人想着一个人 提交于 2019-12-10 16:46:19
问题 I'm trying to upload my image in base64 to my server using cordova-plugin-file-transfer and until now it's not working. My code is like this: photoBase64 = photoBase64.replace('data:image/png;base64,', ''); var url = "http://MYURL.com/path"; var options = new FileUploadOptions(); options.fileKey = "file"; options.fileName = "photoName.png"; options.mimeType = "image/png"; var ft = new FileTransfer(); ft.upload(photoBase64, encodeURI(url), function(result) { console.log("Code = " + result

Read/Write the cookies from an XHR request/response (PhoneGap/Cordova)

放肆的年华 提交于 2019-12-10 16:26:51
问题 I am using $http (angular) and posting to a distant website which I don't control. When logging in, it gives me a 'site_session' cookie which I want to read. Please note that I am able to call a remote website (cross-domain) because running on a mobile device, in a Cordova application. I tried all sorts of solutions found on the web, without any luck. I am using Angular 1.3.13 so the $cookies after $timeout is supposed to work, but doesn't. I tried the withCredentials = true trick, both in

how to open app when clicked on link which is shared in whatsapp or any social app through phonegap?

試著忘記壹切 提交于 2019-12-10 15:20:32
问题 1)When i share a link through phonegap plugin to whatsapp. When user clicks on link. it should check whether a particular app is installed or not. If yes, open that link in the application or else open play store link showing to download the app 回答1: The scenario you're describing, where the device intercepts an HTTP protocol link http://example.com (as opposed to a custom URL scheme using example:// ), is called "Deep Linking" on Android and "Universal Links" on iOS. It's most easily

phonegap-facebook-plugin: only works when native FB app is not installed (Android)

落爺英雄遲暮 提交于 2019-12-10 15:14:51
问题 I'm using this plugin to have a facebook-login option in my Phonegap app: https://github.com/phonegap/phonegap-facebook-plugin. I've followed all the steps in the Android 'getting started' and everything works fine when I run the app on a device (emulator and real) that doesn't have the official Facebook app installed. When I run it on a device which has the official Facebook app installed and I click on the login button, the Facebook dialogue appears and it asks for permission. I choose OK,

PhoneGap BarcodeScanner - ClassNotFound

我的未来我决定 提交于 2019-12-10 15:11:54
问题 UPDATE 2 I posted an answer that fixes my original problem. See that for more information. UPDATE FYI for anyone wondering, in the end I found this: http://github.com/commonsguy/zxingdemo/tree/master Exactly what I needed to get it rolling was a simple demo that worked! Also, thanks to Sean for pointing me in the right direction for my googling. I am currently trying to build a simple android app that can scan in a barcode. I have looked through multiple tutorials, tried everything to a T,

Phonegap (Application error… Network error occured)

元气小坏坏 提交于 2019-12-10 14:06:24
问题 I have created a build using phonegap. In the index.html file i have written a simple iframe for loading a website. Its working when i take the local url from the phonegap. But its not working if i upload the whole build as a zip in phonegap and then download the apk file from it. Then tried to install that apk in phone its showing the application error. I have already checked the access origin and also tried to give the domain name inside it. But its not at all working. Can anybody please

Phonegap push notification plugin with iOs

梦想的初衷 提交于 2019-12-10 12:06:07
问题 I'm using phonegap-plugin-push to send push notifications to Android devices. I'm trying to figure out how to send notification to iOs. I've registered at https://developers.google.com/mobile/add?platform=ios&cntapi=gcm&cnturl=https:%2F%2Fdevelopers.google.com%2Fcloud-messaging%2Fios%2Fclient&cntlbl=Continue%20Adding%20GCM%20Support&%3Fconfigured%3Dtrue I'get token at client app same way as in Android: var push = PushNotification.init({ android: { senderID: "5993...475" }, ios: { alert: "true

Unzip plugin for phonegap 2.3 or higher in android?

梦想的初衷 提交于 2019-12-10 11:42:31
问题 I am searching for a phonegap 2.3 plugin for android which can UnZip the folder . I found this plugin at phonegap official repositry but it is working only in phonegap 1.3 And it is unzipping only half of the file i have a zip folder containing 50 60 html files . but it is extracting only 5 to 10 files and returning "IO error" . Please help me finding a unzip plugin of android for PhoneGap 2.3 or higher I edited this plugin you can also download from https://github.com/ashishanautiyal/Unzip

PhoneGap/Cordova app notifications

痴心易碎 提交于 2019-12-10 11:29:37
问题 I am new to PhoneGap/Cordova, i am looking to add some notifications to my app. Push notification - so when a new article is released on app it will alert the users. Local Notifications - On set intervals (date and time) I can prompt the user of the latest articles on my app. I had done a lot of searching but unable to find a working example that I can import straight into a project and then modify. I have tried the following plugin in but was unable to get it working https://github.com