Instabug-Cordova icon indicating copy to clipboard operation
Instabug-Cordova copied to clipboard

Missing the following permissions in AndroidManifest.xml - WRITE_EXTERNAL_STORAGE

Open ludonoel1 opened this issue 2 years ago • 3 comments

Hello, I have a project with ionic capacitor, so I have decided to install instabug via cordova getting started step. ionic: 6 capacitor: 4

However, I just needed to install instabug-cordova to break my app. I am using capacitor camera which worked before instabug install

androidManifest: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> error: 2022-10-20 16:30:48.343 6720-6720/com.younzee.app E/Capacitor/Console: File: http://localhost/vendor.js - Line 101123 - Msg: ERROR Error: Uncaught (in promise): Error: Missing the following permissions in AndroidManifest.xml: android.permission.WRITE_EXTERNAL_STORAGE

Error: Missing the following permissions in AndroidManifest.xml:
android.permission.WRITE_EXTERNAL_STORAGE

    at returnResult (http://localhost/:421:32)
    at Object.win.androidBridge.onmessage (http://localhost/:396:21)

2022-10-20 16:30:48.351 6720-6720/com.younzee.app E/IBG-Core: PluginsManager.isForegroundBusy() was called before PluginsManager.init() was called

ludonoel1 avatar Oct 20 '22 14:10 ludonoel1

Hi @ludonoel1,

Thank you for reporting this issue, and apologies for any inconvenience this may be causing.

It seems you are facing a similar issue to the one reported here, so I suggest you try modifying your AndroidManifest.xml file accordingly.

Looking forward to hearing your feedback if that resolved the issue for you.

DavidMina96 avatar Oct 20 '22 16:10 DavidMina96

Hey @DavidMina96 I'm sorry but I get the same error as the last message in your post.

Upon adding that line. Remove Android max version. I'm not able to generate release build. Getting this error. "The prefix tools for attribute tools:remove associated with an element type uses-permission is not bound". Can someone help. Anyone faced this issue. ?

ludonoel1 avatar Oct 20 '22 17:10 ludonoel1

@ludonoel1 Please add the tools namespace to your manifest header so it looks like this:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.yourpackage"
    xmlns:tools="http://schemas.android.com/tools">

DavidMina96 avatar Oct 21 '22 10:10 DavidMina96