katzer / cordova-plugin-email-composer

Edit and send email messages
Apache License 2.0
345 stars 336 forks source link

Newer version of plugin doesn't auto add GET_ACCOUNTS permission to Manifest #349

Closed sardapv closed 3 years ago

sardapv commented 3 years ago

Older plugins like 0.8.15 used to add GET_ACCOUNTS permission automatically in manifest when plugin add command is run. I spent hours finding why my app wasn't asking for permission. Found in older version it auto adds it. Please add it back

regnete commented 3 years ago

Add this to your config.xml to achive the 'old' behaviour:

 <platform name="android">
   <config-file target="app/src/main/AndroidManifest.xml" parent="/manifest">
            <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
        </config-file>
 </platform name>