cordova-plugins

Ignore accessibility settings for Cordova app

て烟熏妆下的殇ゞ 提交于 2020-03-21 05:33:24
问题 The answer that is posted everywhere is to use this with the associated plugin: if (window.MobileAccessibility) { window.MobileAccessibility.usePreferredTextZoom(false); } But that doesn't work. The plugin isn't maintained and it has zero effect on the app display in Android 10. I really need to figure out how to ignore the screen zoom setting of the device and display the app normally. Any help would be greatly appreciated. P.S. please don't leave a comment just to say that this isn't a good

Ionic Cordova SQLite plugin Windows “Cannot open include file: 'winapifamily.h': No such file or directory ”

狂风中的少年 提交于 2020-03-05 04:21:25
问题 I recently updated my Visual Studio to Visual Studio 2019 (from 2017), and this may be the cause of the problem I am about to describe. Now, when I attempt to build by Ionic project for Windows, I get the error.. c:\program files (x86)\windows kits\10\include\10.0.15063.0\ucrt\corecrt.h(196): fatal error C1083: Cannot open include file: 'winapifamily.h': No such file or directory [D:\dev\myapp\plugins\cordova-sqlite-storage\src\windows\SQLite3-WinRT-sync\SQLite3\SQLite3.UWP.vcxproj] c:

How to use cordova-filechooser to open file on Android

倖福魔咒の 提交于 2020-03-05 03:26:14
问题 I'm develoing an Android app with Angular and Cordova, and I need to open a file with an user interaction, so I installed this Cordova plugin https://github.com/don/cordova-filechooser cordova plugin add https://github.com/don/cordova-filechooser.git --save yarn install In order to use plugin i write this code declare var fileChooser: any; ... fileChooser.open(function(uri) { alert('File is: ' + uri); }); but the console says 'fileChooser is not defined'. What is the correct way to use this

How to use cordova-filechooser to open file on Android

心不动则不痛 提交于 2020-03-05 03:26:05
问题 I'm develoing an Android app with Angular and Cordova, and I need to open a file with an user interaction, so I installed this Cordova plugin https://github.com/don/cordova-filechooser cordova plugin add https://github.com/don/cordova-filechooser.git --save yarn install In order to use plugin i write this code declare var fileChooser: any; ... fileChooser.open(function(uri) { alert('File is: ' + uri); }); but the console says 'fileChooser is not defined'. What is the correct way to use this

Keep app working even when phone is locked/sleep - Ionic4

假如想象 提交于 2020-03-04 05:06:33
问题 App is an ionic4 capacitor app which uses few cordova plugins as well. I have a timer feature associated with a bluetooth device that has to keep running even when the phone goes to sleep or in locked mode. Using the cordova-background-mode plugin the app works in the background, but as soon as phone is locked or in sleep the timer stops working. When the screen resumes, the timer continues from where it stopped. I cannot use the platform pause and resume events in my case as just taking the

Keep app working even when phone is locked/sleep - Ionic4

旧巷老猫 提交于 2020-03-04 05:06:12
问题 App is an ionic4 capacitor app which uses few cordova plugins as well. I have a timer feature associated with a bluetooth device that has to keep running even when the phone goes to sleep or in locked mode. Using the cordova-background-mode plugin the app works in the background, but as soon as phone is locked or in sleep the timer stops working. When the screen resumes, the timer continues from where it stopped. I cannot use the platform pause and resume events in my case as just taking the

Getting count of contacts correct but getting null values for contacts in Ionic 4

戏子无情 提交于 2020-02-23 08:07:25
问题 I am using ionic contacts plugin it is giving me the correct number of contacts in the phone but all the details field are null, I am using, “cordova-plugin-contacts”: “3.0.1”, “@ionic-native/contacts”: “^5.0.0” import { Contacts } from '@ionic-native/contacts/ngx'; constructor( private contactsPlugin: Contacts ) { } document.addEventListener("deviceready", () => { this.contactsPlugin.find(["displayName", "phoneNumbers","photos"], {multiple: true, hasPhoneNumber: true}) .then((contacts) => {

Ionic app shows white screen on android 4 versions

核能气质少年 提交于 2020-02-22 23:14:37
问题 I am developing ionic application which works fine in browser as well in android 5 versions but when i try to install my same apk in andriod 4 versions it simply displays white screen doesnt show up anything. i had tried installing crosswalk, whitelist and splash screen plugins after installing all plugins i am unable to build. i am attaching the screenshots of installed plugins and build error please help where i am going wrong. Please find the image where i installed the plugins Also,

Local image for marker icon on Cordova/Phonegap Google Maps Plugin

有些话、适合烂在心里 提交于 2020-02-20 09:09:27
问题 Is it possible to use an image locally store on the device as the marker icon? I can use a URL and it works, but when I try to use a local image it won't load. How should I reference the image? This is a multiplatform application so I can't use device specific paths like Android file:///android:asset/ map.addMarker({ 'position': new plugin.google.maps.LatLng(13.7579507,100.5643353), 'title': 'Fortune Town', 'icon': '../templates/icon2.png' }, function(marker) { marker.showInfoWindow(); }); I

How to enable “Sign in with Apple Id” in Ionic 3 application

ⅰ亾dé卋堺 提交于 2020-02-19 10:47:19
问题 I have an existing Ionic 3 application that allows users to sign in with their Facebook or Google accounts. The app interacts with an ASP.NET Core website and api. My understanding is that at some point Apple will require such apps to support "Sign in with Apple" With Facebook and Google, there are cordova plugins (facebook4 and googleplus), and then some server-side code to handle the OAuth/OpenID Connect. I am not finding any cordova plugins for "Sign in with Apple". I have found an article