cordova-plugins

Cordova plugin ListPicker error on Ripple emulator

允我心安 提交于 2019-11-29 16:20:15
I'm using Cordova within Visual Studio and added the ListView plugin . The plugin was added successfully via the config.xml editor screen When I call window.plugins.listpicker.showPicker I can trace all the way to cordova.exec(_callback, _error_callback, 'ListPicker', 'showPicker', [config]) then Ripple displays the "I Haz Cheeseburger" error on ListPicker.showPicker We seem to be missing some stuff :( I have verified that the plugin is listed in the plugins folder with other plugins that I am using Short Version: You did not do anything wrong, test your app on a actual device or an emulator

Cordova / Phonegap get phone number of device (Android & iOS)

有些话、适合烂在心里 提交于 2019-11-29 15:39:57
问题 Is it possible to develop a hybrid mobile app using Phonegap / Cordova and access the device phone number for both Android and iOS? 回答1: iOS: You can retrieve the phone number using the CoreTelephony framework, you will need to add the following Entitlement: com.apple.coretelephony.Identity.get . However apple might reject your app once you upload it to the AppStore. However, if you plan to distribute using the "Enterprise Distribution" plan, you should have no problem at all, see answers by

Type HTTPOriginal is not assignable to type Provider, ionic error after plugin installation

此生再无相见时 提交于 2019-11-29 14:52:36
After i install the cordova-plugin-advanced-http plugin, when i try to import it on providers in app.modules.ts, i get the following: I have reinstalled, clean cache, and it keeps happening. Here's the app.module.ts code: import { HTTP } from '@ionic-native/http'; import { GalleryPageModule } from './../pages/gallery/gallery.module'; import { HttpClient, HttpClientModule } from '@angular/common/http'; import { BrowserModule } from '@angular/platform-browser'; import { ErrorHandler, NgModule } from '@angular/core'; import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular'; import

Setting NSLocationWhenInUseUsageDescription value when using cordova-plugin-geolocation

柔情痞子 提交于 2019-11-29 14:48:46
I'm building a mobile app using Cordova. I use cordova-plugin-geolocation to get the user's current location. To customize the location permission request on iOS it's needed to set the NSLocationWhenInUseUsageDescription plist value. Generally, to set an iOS plist option it's needed to manually set the option value in the platforms/ios/<app-name>/<app-name>-Info.plist . The problem is that on each build the cordova-plugin-geolocation overwrites the custom value with it's default empty string. A guess it has something to do with the following lines in the plugins/cordova-plugin-geolocation

Subsequent callbacks from a Cordova iOS plugin don't fire

北城以北 提交于 2019-11-29 14:14:09
问题 I have troubles with firing immediately subsequent callbacks from a cordova plugin (an iOS one). In XCode debugger I clearly see it steps over [self.commandDelegate sendPluginResult:pluginResult callbackId:monitoredRegions.callbackId]; several times (in immediate succession), each time with a slightly different pluginResult . That gets triggered by [locationManager requestStateForRegion:region]; which I don't (and can't) control. The problem is, on the Javascript side, the callback gets fired

Get facebook user profile using cordova

你说的曾经没有我的故事 提交于 2019-11-29 12:43:48
I want to get first name, last name, email when user login with facebook. My app is in Cordova. I am using cordova plugin for facebook authentication this one " https://github.com/Wizcorp/phonegap-facebook-plugin ". I can login with Facebook but how can I get name, email from it. Thanks in advance. add facebook cordova plugin using below command See Details cordova plugin add https://github.com/Wizcorp/phonegap-facebook-plugin --variable APP_ID="YOURAPPID" --variable APP_NAME="YOURAPPNAME" html code <div onclick="fblogin();"><img src="img/facebook.png" /></div> Javascript code <script>

Can't test Cordova app when open it in browser

断了今生、忘了曾经 提交于 2019-11-29 12:37:53
I created a Cordova app using the 4.3.0 version and the project for an iOS project. Whenever I open the index.html (www folder) file in a desktop browser, it gets stuck in an infinite loop requesting gap://ready . Why is this happening? How can I solve it? Thanks a lot. EDIT AND UPDATE: The iOS app was not working because there was a plugin missing: https://github.com/apache/cordova-plugin-network-information/blob/master/doc/index.md I added it, then build the project again, and it worked. You can't test an iOS project on a regular browser, if you want to test on a browser, add browser

Add a dependency to an Android Cordova plugin

安稳与你 提交于 2019-11-29 12:27:40
问题 I'm building a Cordova Android plugin . I want to use a 3rd party View inside an Intent that is created by the plugin (specifically scissors). Normally (in non Cordova projects) I would go to my project's build.gradle file and add it like this: dependencies { compile 'com.lyft:scissors:1.0.1' } But it seems like the build.gradle file in my plugin's project wasn't meant to be touched? What is the proper way to add a dependency to a plugin project, to support both builds via Cordova and builds

cordova plugin add external .aar file (not .jar)

橙三吉。 提交于 2019-11-29 11:02:38
I am writing a plugin to use the native android SDK of filepicker https://github.com/Ink/filepicker-android . On maven central, they only provide an .aar file ( http://search.maven.org/#artifactdetails%7Cio.filepicker%7Cfilepicker-android%7C3.8.13%7Caar ) and not a .jar. If I add this line in my config.xml <source-file src="src/android/filepicker-android-3.8.13.aar" target-dir="libs/" /> the file is copy in libs but not included in the class path during the build via cordova build , so the build failed. what is the best solution to include a third party library with aar files? Thank you for

Internal navigation rejected: <allow-navigation not set> in Cordova on iOS

﹥>﹥吖頭↗ 提交于 2019-11-29 10:37:36
问题 I have built an iOS app using Cordova. The app tries to load a web page e.g. http://yourdomain.com/home in index.html. But, the page stays white blank with error in console "Internal navigation rejected - <allow-navigation> not set for url='http://yourdomain.com/home'". I have already set <access origin="http://yourdomain.com/home" subdomains="true" /> and also tried by setting <allow-navigation> tag. But the page stays blank. am I missing anything else? Please guide. After adding the