I have an ionic app that it worked fine until Android 7, but with Android 8 I get an error on first screen and I can lauch the app.
This is the error: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{90ce8a3 6461:com.ionicframework.mobile860711/u0a85} (pid=6461, uid=10085) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67)
But I don’t use these permissions, and even if i put the permissions on AndroidManifest.xml it’s still not working.
If you put these perms, does you have any output logs (like error?)
And does the app running on other Android versions? (using Android Studio for example?)
No ContactProvider is’nt used at this app, even READ_CONTACTS and WRITE_CONTACTS permissions weren’t on the Manifest i only put there beacuse this error, this app don’t use contacts.
If they were used this app would fail on previous versions too. That’s isa very weird situation.
Not really, because Oreo made some fundamental changes to the permission system. This bit me on the Camera plugin, and perhaps your siituation is similar. Look into using the android-permissions plugin.
I have the exactly same situation, have been struggling in this for days, please help.
App is running without problems on android 7 and earlier versions, but with android 8 the app crashes as soon as the app is launched. In Logcat shows the same error: Permission Denial: opening provider … requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS.
I have Cordova 8.0.0 and Cordova Android 6.3.0, I firstly thought it’s because the Cordova Android version is outdated, upgraded it to Cordova Android 7.1.0 (broke a lot of things, took me very long time to fix the compatibility issues), but still, the same error as above.
I have reverted back to Android 6.3.0, since I’m not totally sure if the fix I made for the compatibility issues won’t break anything else.