cordova-plugins

Android- Zxing Scanner Add Preview in the centre

早过忘川 提交于 2019-12-25 01:14:40
问题 I'm using Zxing library in Android, Camera Activity is showing correct width and height of scan area but it is not showing in the middle of the screen. Camera Scan area should be added in the middle. Please guide how to fix it. I have attached screenshot of the issue. I have added Camera Manager class below. [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/51QiN.jpg **CameraManager Class** public final class CameraManager { private static final String TAG = CameraManager

.so library not loaded from cordova apk

有些话、适合烂在心里 提交于 2019-12-24 20:52:47
问题 I'm developing a Cordova plugin to wrap a third party SDK, which depends on several .so files. I declare the native libraries in plugin.xml like this: <platform name="android"> <config-file target="res/xml/config.xml" parent="/*"> <feature name="RfidScanner"> <param name="android-package" value="org.un.eac.cordova.plugin.rfid.RfidScanner"/> </feature> </config-file> <!-- armeabi .so --> <source-file src="lib/android/armeabi/libandroid_060.so" target-dir="libs/armeabi"/> <source-file src="lib

Build fails when I add the latest version on local notification plugin using CLI Command failed with exit code 8

ⅰ亾dé卋堺 提交于 2019-12-24 17:48:00
问题 Below is the full error message C:\joel1\joel1\platforms\android\src\de\appplant\cordova\plugin\localnotificatio n\LocalNotification.java:495: error: cannot find symbol webView.evaluateJavascript(js, null); ^ symbol: method evaluateJavascript(String,) location: variable webView of type CordovaWebView C:\joel1\joel1\platforms\android\src\de\appplant\cordova\plugin\localnotificatio n\LocalNotification.java:492: error: cannot find symbol webView.post(new Runnable(){ ^ symbol: method post()

Phonegap 3.4 FileTransfer error (iOS)

大城市里の小女人 提交于 2019-12-24 17:26:47
问题 I'm trying to load a file from a server and save it on the device. This code used to work in Phonegap 3.1, and it's still working fine with 3.4 on Android. But when I run the same code on iOS 7.1. I got an error saying, { "code":1, "source":"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/18/96730/70400", "target":null, "http_status":200, "body":"Could not create target file" } Here's my code. var fileTransfer = new FileTransfer(); fileTransfer.download

push not initilizing when trying to create hybrid android application

為{幸葍}努か 提交于 2019-12-24 17:20:02
问题 I am trying to implement push notifications using bluemix and mobilefirst. I have used the following links to implement http://www.ibm.com/developerworks/library/mo-cordova-push-app/ http://mbaas-gettingstarted.ng.bluemix.net/hybrid#initialize-push - When i run the the below code I am getting the following message in the console: initPush called---------------- main.js:29 calling bluemix initialize with values---------------------- IBMBluemixHybrid.js:2956 [INFO] [DEFAULT] Hybrid initialize [

How to use Cordova InAppBrowser into a HostedWebApps?

感情迁移 提交于 2019-12-24 15:42:43
问题 I have a website with 2 mobile-apps displayed with Cordova, and they works really great. But I have a problem : When an external link is triggered by the user, he go out of the application and don't have any possibility to come back on the App... (except close and reopen). I have installed inappbrowser according to this tutorial. Sounds very simple but not working... Console : cordova plugin add cordova-plugin-inappbrowser Link (supposed to trigger InAppBrowser - not working) : <a href="#"

Ionic-3 Photo-library plugin crashes in iOS version 13. Unexpectedly found nil while unwrapping an Optional value: file

ぃ、小莉子 提交于 2019-12-24 15:31:39
问题 Ionic-3 Photo-library plugin crashes in iOS version 13. Works fine in iOS 12 version. Here is the log: 2019-09-30 12:03:03.878478+0530 destinate[453:135517] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 “(null)”" Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Volumes/Data/Projects/Destinate/destinate/platforms/ios/destinate/Plugins/cordova-plugin-photo-library/PhotoLibraryService.swift, line 314 2019-09-30 12:03:04.117471+0530

Push notifications with big Images using cordova push plugin

强颜欢笑 提交于 2019-12-24 15:18:51
问题 I want to get push notification something like flipkart or myntra does. (Push notification will come with an Big image detailing about offers, on clicking of which will take to offers zone). Does anyone know how to get it done. I have code something like this: NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context) .setDefaults(defaults) .setStyle(new NotificationCompat.BigTextStyle().bigText("This is a test for push notification with big images.")) .setLargeIcon(icon)

Change the user agent of Crosswalk 13+ as webview in Cordova

醉酒当歌 提交于 2019-12-24 15:02:07
问题 I am trying to change the User Agent of Crosswalk used as webview for Cordova. I am currently using the plugin cordova-plugin-crosswalk-webview. I am able to accomplish the customization of the user agent with vanilla Cordova with the following code: import android.webkit.WebSettings; import android.webkit.WebView; public class MainActivity extends CordovaActivity { public WebSettings settings; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Plugman framework skips Mac OS X symbolic links

社会主义新天地 提交于 2019-12-24 12:37:23
问题 I'm working on this plugin: com.ios.libgoogleadmobads, which is a helper plugin for https://github.com/appfeel/admob-google-cordova (com.admob.google cordova admob plugin) As you can see here: https://github.com/appfeel/google-iosadmobads/tree/master/src/ios/GoogleMobileAds.framework there are two symbolic lynks. When I try to install the plugin: cordova plugin add com.ios.libgoogleadmobads The links are skipped. Any workaround/solution please? UPDATE As a workaround I've added a hook to