cordova-plugins

Cordova cordova-plugin-qrscanner: Opaque camera view

点点圈 提交于 2019-12-07 23:46:12
问题 I am working through quasar-framework and I do the wrap with cordova for android platform. The scanner works fine but blindly. When QRScanner.show() starts I am getting full opaque view. I try to do all html elements transparent, hide and even remove some of them after and before QRScanner.show() call but always I see the opaque view. Someone knows how to fix this? <script> export default { /* Fuentes: camera https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-camera/index.html

Offline and online events not getting Called in cordova 3.5.0

独自空忆成欢 提交于 2019-12-07 18:43:39
问题 I am using cordova 3.5.0 to develop my phonegap application . In that i want to check internet connectivity before web service calls . So i added network status plugin by using the command cordova plugin add org.apache.cordova.network-information . Plugin installed successfully in my application . After Adding the plugins i added 2 EventListener's one for online and another for offline. var app = { // Application Constructor initialize: function() { console.log('App initializing...'); this

How can I draw a line between two google map native markers? (Ionic 3, cordova)

六眼飞鱼酱① 提交于 2019-12-07 16:39:39
问题 How can I draw a line between two google maps native markers? In my project, I need one dynamic marker and one fixed marker. addMarker() { this.map.addMarker({ title: 'My Marker', icon: 'blue', animation: 'DROP', position: { lat: this.place.lat, lng: this.place.lng } }) .then(marker => { marker.on(GoogleMapsEvent.MARKER_CLICK).subscribe(() => { alert('Marker Clicked'); }); }); } 2nd marker: addMarker2() { this.map.addMarker({ title: 'My Marker', icon: 'blue', animation: 'DROP', position: {

Taking panorama image using the Cordova plugin?

假如想象 提交于 2019-12-07 12:28:56
问题 Is possible to take panorama image using the some cordova plugin (in X and Y axiss) ? Thanks for any advice. 回答1: The camera plugin starts the device's camera app, so I guess that on a phone with a camera app that does panorama you can take panorama from a cordova app (the user would have to select the function manually). Otherwise you would have to either build a plugin in native code to start a different app that does panorama or build a plugin with it's own camera view and you would have

How to change the icon of an ionic application?

偶尔善良 提交于 2019-12-07 11:19:27
问题 I'm trying for hours to deploy an ionic application to a android device. I have change the icon and splash. Then I do: ionic resources I obtain: Then I do: ionic platform rm android ionic platform add android ionic run android But I have always the default icon and splash values of ionic. I have seen in the resources folder and I have the correct images in the android folder. Can you see what I'm doing wrong? 回答1: There is a bug in cordova-android platform version 6.0.0 which copies the

Cannot get Cordova text-to-speech plugin to work

梦想的初衷 提交于 2019-12-07 06:55:00
问题 I'm trying various plugins for TTS, including the one at https://github.com/vilic/cordova-plugin-tts, but cannot get any to work. For this one, for example, according to the docs, its usage should be: TTS .speak('hello, world!', function () { alert('success'); }, function (reason) { alert(reason); }); but I get 'TTS not defined'. Also tried 'navigator.TTS....' but still no good. Also I'm unsure whether I need to include the tts.js in the package; if so I get 'exports not defined'. If anyone

Cordova iOS build fails with 'edit-config' tag

六眼飞鱼酱① 提交于 2019-12-07 05:35:46
问题 I have an Ionic 3 app ( Ionic CLI 3.19.0, Cordova CLI 8.0.0, android platform 7.0.0, ios platform 4.5.4 ) that includes the native 'Geolocation' plugin. Since iOS 10+ requires the NSLocationWhenInUseUsageDescription property in the App-Info.plist file, the plugin's documentation (Geolocation iOS Quirks) says to include the following in the config.xml: <edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge"> <string>need location access to find things nearby<

How do I add a variable to a phonegap plugin with Meteor?

怎甘沉沦 提交于 2019-12-07 04:59:13
问题 I have a plugin, https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin, that I would like to use with Meteor. I added the GIT repo to app/.meteor/cordova-plugins . The plugin requires a variable to be passed to it when it's installed. How would I add that variable? I added this to mobile-config.js : // Pass preferences for a particular PhoneGap/Cordova plugin App.configurePlugin('nl.x-services.plugins.launchmyapp', { URL_SCHEME: 'mycoolapp' }); App.setPreference("URL_SCHEME",

Reading ionic www/config.xml file from device

房东的猫 提交于 2019-12-07 04:45:55
问题 I am having trouble reading the www/config.xml file from Android device. I tried two different approaches. First, I tried using the $http service which was recommended in another thread to do. When that did not work I then tried to use the Cordova file plugin. The reason I am doing this is to try to get the version number from the www/config.xml file in the app. Below are both approaches: 1) $http.get() url = 'file:///android_asset/www/config.xml' $http.get(url) .then ((data) -> versionNumber

Change Android Statusbar color In Cordova

送分小仙女□ 提交于 2019-12-07 04:45:17
问题 I want to change the Status bar color in Android (I'm using 6.0 for testing). I tried the statusbar plugin and all the solutions I found for it but nothing worked. This is included in my config.xml <widget> : <preference name="StatusBarOverlaysWebView" value="true" /> <preference name="StatusBarBackgroundColor" value="#BE1912" /> My index.js uncludes: if (window.cordova && StatusBar) { StatusBar.backgroundColorByHexString('#3399FF'); } Added the plugin per package name and github repo.