Suggestion fix issue permission on android

Hello

Now I finish app then to be publish to google player. But when i upload I get a error below

Resolve these errors before starting the rollout of this release.
Your app has an apk with version code 1 that requests the following permission(s): android.permission.READ_PHONE_STATE,android.permission.GET_ACCOUNTS,android.permission.READ_CONTACTS. Apps using these permissions in an APK are required to have a privacy policy set.

So that I tried google search I some one suggestion add a config to config.xml like below

<platform name="android">
        <allow-intent href="market:*" />
        <config-file parent="/manifest" target="AndroidManifest.xml">
            <uses-permission android:name="android.permission.READ_PHONE_STATE" />
            <uses-permission android:name="android.permission.READ_CONTACTS" />
            <uses-permission android:name="android.permission.GET_ACCOUNTS" />
        </config-file>

Then I try recompile again app but it seem the config wrong so that not working


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:

Run with 
--stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED


Total time: 6.6 secs

Error: /Users/phanbook/github/app-lackky/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/phanbook/github/app-lackky/platforms/android/res/xml/config.xml:100: AAPT: Error parsing XML: unbound prefix
    
warning: string 'feather_promo_title2' has no default translation.
/Users/phanbook/github/app-lackky/platforms/android/build/intermediates/res/merged/debug/xml/config.xml:100: error: Error parsing XML: unbound prefix

Any one give me some advice. Thanks note that I have finish push to app store is ok

Why not just put a privacy policy on the Play Store?

Thanks now I fix it just put a privacy

why request permissions that the app doesn’t need ?
You know how many apps I reject because of those permissions …

1 Like

from where can I get a privacy policy ?

I use this template: https://gist.github.com/alphamu/c42f6c3fce530ca5e804e672fed70d78