cordova-plugins

Send data using wlan in cordova app

吃可爱长大的小学妹 提交于 2019-12-11 12:24:11
问题 I want to develop an ionic app that can send receive data using wlan to other devices connected to the same network without internet. Is there any plugin or method available in cordova to send/receive data in local networks. 回答1: Use this plugin: https://www.npmjs.com/package/cordova-plugin-chrome-apps-socket I have included it in two of my apps to exchange data between devices in the same network via sockets. I use it also to implement a local webserver on the devices. It works on iOS and

Ionic V2 and Cordova Plugins - Uncaught TypeError: Cannot set property 'test' of null

China☆狼群 提交于 2019-12-11 12:19:50
问题 I am using Ionic v2 and the Phonegap Barcode Scanner plugin. When executing the scanBarcode() function below I am getting the error: Uncaught TypeError: Cannot set property 'test' of null at this.test = result.text; code: import {Page} from 'ionic-angular'; @Page({ templateUrl: 'build/pages/scanBarcode/scanBarcode.html' }) export class ScanBarcode { constructor() { this.test = ""; } scanBarcode(){ cordova.plugins.barcodeScanner.scan( function (result) { console.log(result.text); this.test =

Unable to run Android app after updating to cordova android 7.0.0

折月煮酒 提交于 2019-12-11 12:08:51
问题 I have created an Cordova Android 7 app while running app I get an error at system.load("xxxx") java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader ......:couldn't find "xxxx.so" in plugin.xml file I have defined jar and .so file like below : <lib-file src="src/android/libs/xxxxx.jar"/> <resource-file src="src/android/libs/armeabi/xxxx.so" target="libs/armeabi/xxxx.so" /> I hav tried all the possible ways by changing paths but no luck.What should be done to load library correctly ?

How to call another cordova plugin from an android cordova plugin?

只谈情不闲聊 提交于 2019-12-11 11:56:22
问题 What would be the best way to call another cordova plugin in android? I want to have a background service that calls a server for some information and based on that information, I need to do for example set a badge. I found a Cordova Background Services Plugin, https://github.com/phpsa/cbsp that could work well for my purposes and the use it with https://github.com/katzer/cordova-plugin-badge among others. I'm wondering what would be the best way to do it? Can I just include the classes and

Local notification “schedule” and “trigger” methods are executing multiple times

China☆狼群 提交于 2019-12-11 10:26:52
问题 Hi I'm new on ionic and I'm using (katzer/cordova-plugin-local-notifications), I have a problem and I don't know what is happening. When I click in a link, I'm generating a new notification. But I don't know for what when I click for the second time in the notification, the alert inside of "schedule" and "trigger" is executed two times, and when I click for the third time in the notification, the alert inside of "schedule" and "trigger" is executed three times, and so.. This is my code, it's

How to access sdcard files in Ionic 3

我是研究僧i 提交于 2019-12-11 10:26:13
问题 I am working on Ionic 3 and i am newbie in ionic so tried to upload documents from device i used and android permission for storage access but i able to access only internal storage of device, i want to access files from sd card. Here below is my code import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { RemoteServiceProvider} from "../../providers/remote-service/remote-service"; import { AndroidPermissions } from '@ionic

How to Hide Keyboard in Ionic 3?

断了今生、忘了曾经 提交于 2019-12-11 08:59:36
问题 How to Hide Keyboard in ionic3? We have a problem with ionic 3 apps during testing in iPhone. After fillup Payment Gateway information (which is launched in iFrame), Whenever we go to the back page using the back button, Keyboard is not Hiding. We used cordova-plugin-ionic-keyboard and use Keyboard.hide() method. But didn't work. 回答1: Try this import { Keyboard } from '@ionic-native/keyboard'; @Component({ selector: 'page-home', templateUrl: 'home.html' }) export class HomePage { constructor

Cordova Plugin - Add third party sdk

白昼怎懂夜的黑 提交于 2019-12-11 07:39:41
问题 I am trying to create the plugin for the following sdk - https://ktplayhelp.zendesk.com/hc/en-us/articles/221071888-Android In the setup project configuration point it is telling to setup the sdk by importing module in Android studio and add the dependency in our application's build.gradle file. Can anyone please help and tell me how can I import the Android native module in Cordova without using Android studio? 回答1: As you can't modify cordovas .gradle file you have to add your own and

Read File as Array From SD Card in cordova (ionic) with cordova-plugin-file

孤者浪人 提交于 2019-12-11 07:27:43
问题 I use audio files in my app that I need to get as an buffer array. For this I let the user choose a file (using Ionic/Cordova FileChooser Plugin) and then I get an URL like: content://com.android.providers.media.documents/document/audio%3A8431 After that, I sent this to Cordova Plugin File resolveNativePath function and I get a Path Like: file:///storage/emulated/0/Prueba interno/Interno, Teddybär, Dreh Dich Um__320kbps.mp3 Here I make my audioFileInfo Object audioFileInfo = {name: "Interno,

requestFileSystem never returns Cordova 3.4 on iOS

六眼飞鱼酱① 提交于 2019-12-11 07:18:27
问题 I am in the process of updating my cordova app which was last released in January - prior to the significant changes to the File plugin. All is working fine in ripple (old style), but when run on the iOS simulator or iOS device (iOS 7.1), my window.requestFileSystem call will never return (neither fail nor succeed). This behaviour occurs for both persistent and temporary file systems. I am guessing I have some configuration problem. However, I have tried everything to no avail. Adding console