phonegap-plugins

Push notifications delivered to apple apns server but device received nothing

浪子不回头ぞ 提交于 2019-12-05 13:57:26
Development environment: iOS 9.3.2 (iPh6ne 6+) ... but it works on iOS 8.x Phonegap 6.2.7 Phonegap-plugin-push v1.7.2 PHP7 (server side)- contentpush - ref My situation: the token was delivered to my server automatically message sent to ssl://gateway.push.apple.com 2195 successfully nothing received in device even alert("") push.on('notification', function(data) { console.log(data.message); alert(""); alert(data.title+" Message: " +data.message); }); Nitesh Apple doesn't give any guarantee on successful message delivery. you can see related answer here If you're not seeing Apple push

Continuous speech recognition with phonegap

依然范特西╮ 提交于 2019-12-05 12:48:16
I want to create app in phonegap with continuous speech recognition in Android and IOS. My app should wait for user voice and when he/she say "next", app should update screen and do some actions. I find this plugin: https://github.com/macdonst/SpeechRecognitionPlugin and it works really fast. But after few seconds after voice recognition is started and there is no voice, speech recogniser stops. Is there any method or flag like isSpeechRecognizerAlive or any other solution? Or is it possible to run it as a service? I'm also wondering that is there similar plugin on IOS and how to manage it :)

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

Embedding Cordova WebView, Receiver is not registered

送分小仙女□ 提交于 2019-12-05 08:20:00
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 MainNativeViewController extends FragmentActivity implements CordovaInterface, JavaScriptListener {

Cordova/Phonegap: Can't get Facebook Phonegap plugin to work

十年热恋 提交于 2019-12-05 07:48:18
I tried creating a Cordova/Phonegap app and adding the Facebook plugin, but alert(typeof facebookConnectPlugin); shows undefined: sudo npm install -g cordova cordova create hello com.example.hello HelloWorld cd hello cordova platform add ios cordova -d plugin add https://github.com/phonegap/phonegap-facebook-plugin --variable APP_ID="1415347585409217" --variable APP_NAME="Test" vi www/index.html # Add: alert(typeof facebookConnectPlugin); to the last <script> cordova emulate ios Expected: The emulator shows "Object" in the alert dialog. Actual: The emulator shows "undefined" in the alert

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

瘦欲@ 提交于 2019-12-05 07:46:03
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.ogg"; }else{ url = "sound.mp3"; } alert(url); sound = new Media(url); sound.play(); Anyone have an ideas?

Remove splash screen in phonegap for both ios and android

北城余情 提交于 2019-12-05 07:32:06
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. Bhavin 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 show cordova.exec(null, null, "SplashScreen", "show", []) I found it Here : iOS PhoneGap / Cordova –

CameraRoll image to canvas using Phonegap

落花浮王杯 提交于 2019-12-05 07:14:48
问题 I'm trying (aka getting mad) to get an image from camera roll/album's iphone and putting onto a canvas over phonegap, and specifically, using the Camera Plugin but I can't do it. Here is the function that should show the image in an tag, but I want to put it in canvas due to edit and then save it: function onPhotoURISuccess(imageURI) { var largeImage = document.getElementById('largeImage'); largeImage.style.display = 'block'; largeImage.src = imageURI; } Any ideas? Thanks in advance, DGM.-

Phonegap Desktop App external plugins

你离开我真会死。 提交于 2019-12-05 06:48:53
Has anyone had luck adding external plugins to the Phonegap Desktop App? I have had success adding core plugins like "Device" but not external ones. I am trying to add com.admob.google to my project and I can not get admob to be recognized as a command. In the config.xml I add: <gap:plugin name="com.admob.google" source="plugins.cordova.io" /> And in my deviceReady function in my .js file I have: try{ admob.requestInterstitialAd(); //or any other admob command } catch(err){ alert("admob not loaded"); } Every time on my device (via Phonegap Developer App) I get the alert saying that "admob not

Phonegap get localstorage values from Java code?

烈酒焚心 提交于 2019-12-05 06:48:20
I have saved data on the client side with phonegap using localstorage and now I would like to access that saved data with java code. Is this possible? How can I do this? Thanks. Why don't you make a native plugin that stores values in android shared preferences and call it each time you add/delete objects in the localstorage. So, in javascript you don't directly call the localstorage functions, but a wrapper which 1) manipulates the localstorage and then 2) calls the plugin to store it in the shared preferences as well. Of course this involves a double copy of each object, so you'll have to