cordova-android

Custom uses-permission with ionic 3

半城伤御伤魂 提交于 2019-12-25 01:01:25
问题 On app builds with Ionic3 (cordova 7.0.0 | android@6.2.3), I need to use microphone, SIP and internet access (WI-FI). So I try edit config.xml with edit-config in this way: <edit-config file="AndroidManifest.xml" mode="merge" targe="/manifest”> <uses-permission android:name="android.permission.USE_SIP" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> <uses-permission android:name="android.webkit

ionic cordova : how to display an image in img tag from android gallery when i get content:// url from filechooser plugin

江枫思渺然 提交于 2019-12-22 09:57:09
问题 i wasted 6 days (and counting) struggling to display an image from gallery on android using ionic3-cordova this.fileChooser.open() .then((uri) => { console.log('image uri is', uri); }) i cannot use uri directly to bind to my tag's src i tried to use another plugin and get a file entry return this.file.resolveLocalFilesystemUrl(uri); i cannot use that either... unsafe uri! then i used this.domSanitizer.bypassSecurityTrustUrl(entry.toInternalURL()); and i cannot use that either to bind to img

How to add native module to Cordova Android project?

假如想象 提交于 2019-12-14 02:06:46
问题 I want to add a native (integration test) module to a Cordova Android project. For fully native projects, you just add a new module, commit and be done with it. But for Cordova I of course don't really want to mess with the generated Android project as some of these changes might be lost on build etc. I got a Poof of Concept of the module working manually by having the module folder outside of the Cordova Android folder and adding this to settings.gradle : include ':module-androidTest'

Ionic android build error after migrating to androidx

亡梦爱人 提交于 2019-12-13 04:33:11
问题 I am working on an ionic 3 project.i had to migrate to androidx due to a sudden build issue. I created the android platform with cordova-android@8.0.0 version and i did the needful but now i'm getting some other errors while building the android platform I created the android platform with cordova-android version 8.0.0. Added below lines to gradle.properties file android.useAndroidX=true android.enableJetifier=true Updated the plugins to the latest this is my project.properties file target

AAPT: error: resource android:attr/fontVariationSettings not found

一世执手 提交于 2019-12-12 10:46:35
问题 D:\wamp\www\moodle35>cordova build android cordova-android-support-gradle-release: Android platform: V7.1.2+ cordova-android-support-gradle-release: Wrote custom version '27.1.0' to D:\wamp\www\moodle35\platforms\android\app\build.gradle cordova-android-support-gradle-release: Wrote custom version '27.1.0' to D:\wamp\www\moodle35\platforms\android\app\src\main\cordova-android-su port-gradle-release\properties.gradle Android Studio project detected cordova-android-support-gradle-release:

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 ?

Add .so files to Cordova Plugin

醉酒当歌 提交于 2019-12-11 04:27:13
问题 I have developed a Cordova Plugin for my Ionic app, which throws the following error when accessed: java.lang.UnstatisfiedLinkError: dalvik.system.PathClassLoader [DexPathList [[zip file "/data/app/io.ionic.starter-2/base.apk"], nativeLibraryDirectories=[/data/app/io.ionic.starter-2/lib/arm/, /vendor/lib, /system/lib]]] couldn't find "libserial_port.so" I've put libserial_port.so file in the libs folder, at this path: pluginName\src\android\libs\armeabi\libserial_port.so . Then, in plugin.xml

Google warns developer to include 64-bit version for Android app

烈酒焚心 提交于 2019-12-07 07:05:26
问题 Google is warning developers that starting Aug 1, 2019, all apps must be 64-bit. I use Cordova to build our web app into an Android app and upload the generated 32-bit APK file into google play store The Cordova crosswalk plugin allow me to build both 32-bit and 64-bit versions using the commands cordova build android --release and cordova build android --release --xwalk64bit respectively. I used the same android version code for both the APKs when build Questions: Earlier I used to upload

Google warns developer to include 64-bit version for Android app

耗尽温柔 提交于 2019-12-05 12:24:08
Google is warning developers that starting Aug 1, 2019, all apps must be 64-bit. I use Cordova to build our web app into an Android app and upload the generated 32-bit APK file into google play store The Cordova crosswalk plugin allow me to build both 32-bit and 64-bit versions using the commands cordova build android --release and cordova build android --release --xwalk64bit respectively. I used the same android version code for both the APKs when build Questions: Earlier I used to upload only the 32-bit version into the play store(Production Track). Right now, Since I have both 32-bit and 64

Can not add Biometric support API in my Old Android Project

旧巷老猫 提交于 2019-12-01 14:40:49
SO After being an iOS Developer for 8 and half years , I started learning andorid 4 months ago and I was given a Cordova andorid project to work on. Task was to integrate Fingerprint and face ID Login. What i have in my current project ( very old project ) : build gradle : 2.3.3 gradle version : 3.3 cordova-android version : 5.1.4 I know these are very old . What i tried so far in last 10 days : I tried to upgrade above to latest build gradle and gradle version. Whole bunch of errors appears , one after another. I have tried adding bio-metric support library in build.gradle and in build-extra