ionic app on android with error message "detected problems with API compatibility" - ionic-framework

I just walk through the ionic guidance to build an ionic app. After the app deployed on my android device, it always displays an error message "detected problems with API compatibility (visit g.co/dev/appcompat for more information)" as the enclosed screenshot.
I tried to package and deploy the app with Cordova and Capacitor. The same error message displayed. (yes, Capacitor actually based on Cordova).
I just walk through the g.co/dev/appcompat and do some search online. It is caused by Restrictions on non-SDK interfaces of Android 9. The app was created with ionic start template.
Anyone know the solution to dissolve the warning message? Thanks very much~

Related

Flutter Application won't install on Xiomi, OnePlus, Vivo and user session is not maintained

I have recently developed a Flutter application which works totally fine on all iPhone models and tested on Samsung and different android devices. However it gives either one of the following issue on some phones such as OnePlus, Xiomi Redmi etc.
Application won't install with error message "There was a problem in parsing the package"
If by chance the app gets installed on some Xiomi, OnePlus models, my user session which I have maintained through shared preferences does not persist. User is logged out when the app has been closed.
I am using following packages in my application:
list of packages
This error occurs mostly due to Android 12 and incorrect AndroidManifest.xml configuration if the phone i running SDK 31+ insure your app is configured for Android 12 if not try to set android:exported to any , ,, or components that have s declared in the app’s AndroidManifest.xml
Here is a blog on how to fix it

Ionic Capacitor Error occurs sporadically in app with polyfills

I am using Ionic 5 with Capacitor 2.4. Sometimes there are errors at runtime like this when running on android or apple devices:
"#capacitor://localhost/3.008c706ad59f318aa3fd.js:1:3212\n__tryOrUnsub#capacitor://localhost/main.c68298d83b828b6fc082.js:1:286188\nnext#capacitor://localhost/main.c68298d83b828b6fc082.js:1:285417\n_next#capacitor://localhost/main.c68298d83b828b6fc082.js:1:284580\nnext#capacitor://localhost/main.c68298d83b828b6fc082.js:1:284355\n_next#capacitor://localhost/main.c68298d83b828b6fc082.js:1:1180252\nnext#capacitor://localhost/main.c68298d83b828b6fc082.js:1:284355\n_next#capacitor://localhost/main.c68298d83b828b6fc082.js:1:1180252\nnext#capacitor://localhost/main.c68298d83b828b6fc082.js:1:284355\ndispatch#capacitor://localhost/main.c68298d83b828b6fc082.js:1:1266164\n#capacitor://localhost/main.c68298d83b828b6fc082.js:1:1311804\nonInvoke#capacitor://localhost/main.c68298d83b828b6fc082.js:1:1088017\nrunGuarded#capacitor://localhost/polyfills.4ea97ed0da6445bc9427.js:1:2235\n#capacitor://localhost/main.c68298d83b828b6fc082.js:1:1311791\n_execute#capacitor://localhost/main.c68298d83b828b6fc082.js:1:44143\nexecute#capacitor://localhost/main.c68298d83b828b6fc082.js:1:43992\nflush#capacitor://localhost/main.c68298d83b828b6fc082.js:1:707896\nflush#[native code]\nrunTask#capacitor://localhost/polyfills.4ea97ed0da6445bc9427.js:1:2731\ninvokeTask#capacitor://localhost/polyfills.4ea97ed0da6445bc9427.js:1:8369\n#capacitor://localhost/polyfills.4ea97ed0da6445bc9427.js:1:32140"
I do not have any ideas why or when this happens. It is not reproducible and occurs sporadically with some users of my app.
Any ideas?
Thanks, Maik.

FIREBASE_AUTH_API is not available on this device

I have followed the new Google Firebase guide for Facebook sign-in on Android but I am consistently getting the following error on a particular device.
FirebaseAuth:signInWithCredential failed
com.google.firebase.FirebaseApiNotAvailableException: API: InternalFirebaseAuth.FIREBASE_AUTH_API is not available on this device.
On other devices it seems to work fine. The device is Moto X Play running Android 6.0.1. It also has Google Play Services 9.0.83. I tried a complete uninstall and reinstall with no luck.
This was a bug affecting the 9.0.0 and 9.0.1 versions of the SDK. It has been fixed as of SDK version 9.0.2.
Update the Google repository via the Android SDK manager and then change your gradle dependency to:
compile 'com.google.firebase:firebase-auth:9.0.2'
See incident details here.
As Alfonso says in the comments, there is an issue we are seeing where some users don't have the Firebase Auth API available even though they have Google Play services 9.0.83.
That's a bug - sorry about that - and is being investigated at the moment. If you're seeing it, please raise an issue in the troubleshooting page with any further details of the device where you had the problem.

Getting a check log error on publish in SmartFace app studio

I am trying to publish the android app from SmartFace app studio and it is giving me an error to check logs. I am not sure where to find these logs. Publish to iOS works fine. Also I verified the android SDK is found in Project Details tab.
I have attached the screenshots here
This kind of publishing error can be caused by many factors. The ones that I know of are:
node.js that comes with Smartface is outdated, so you have to update it mannualy by going to its site and installing the latest version.
Sometimes Smartface says Java is found but it's not, so writing the correct directory could fix the issue.

Ionic missing InAppBrowser plugin error When doing custom authentication

I've created an Ionic app and I'm trying to use the Custom Authentication option eg. Ionic.Auth.login('custom', authOptions, data).then(success, failure); However, I get an error message in the failure saying "Missing InAppBrowser plugin".
The plugin is installed and I've tried to uninstall and reinstall the plugin with no luck. When I use 'basic' the request goes through fine.
How do I fix this or get around it?
Plugins only work when running in native devices. You can't use them on browser with ionic serve.
You may want to start testing on a real android device or emulator.
Alternatively, there's a chrome plugin called Ripple that emulate an real devices with native-like features, allowing you to use some plugins on browser.