How to add the BILLING permission to your APK

  1. SDK Version: 41.0.0
  2. Platforms(Android/iOS/web/all): Android

I am using expo-in-app-purchases@10.1.1

How to add the BILLING permission to your APK.

Google Play: To add in-app products, you need to add the BILLING permission to your APK.

As far as I know the expo-in-app-purchases adds that permission ( if it is needed ).

You can confirm this in your app by running a build ( expo build:android -t apk --release-channel my-test-channel-123 ) and then investigate the resulting APK file with AAPT2 or apktool. You can simply text-search the directory for “BILLING”.

UPDATE:
Anyway, I think it does not include it because it is not required since 2017:

Although a comment under that answer says:

This is true and useful, but your app still does need that permission. It’s just that the library now does it for you, you don’t hand-modify your AndroidManifest.xml. If you look at the the final merged AndroidManifest.xml file after building, you’ll see that it’s there after adding the library. – James Moore Oct 31 '19 at 18:59

I’m not sure how that happens with Expo, but presumaby it should happen during the build.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.