Difference Between "com.android.vending.BILLING" And "android.permission.BILLING"
Asked Answered
B

2

6

Whilst setting up in-app purchases in my app, I came across the fact that there are two permissions related to billing:

<uses-permission android:name="com.android.vending.BILLING" />

<uses-permission android:name="android.permission.BILLING" />

What is the difference between these two permissions? It seems most people online are stating to use the first one for in-app purchases but then what is the second one needed for?

Binnie answered 6/8, 2015 at 10:2 Comment(3)
developer.android.com/intl/zh-CN/google/play/billing/…Demanding
https://mcmap.net/q/1505448/-testing-in-app-billingDemanding
@IntelliJAmiya I know that you have to use the first one, that is not my question. I have in-app purchases working in my app. I just want to know what the second permission is for and when I would need to use it. Clearly Google must have added it for a reason!Binnie
M
3

For reference, this permission is no longer necessary if you've migrated to BillingClient (at the time of writing version 4.0). The following screenshot is from Android developer documentation.

Screenshot from Google Documentation

Maddocks answered 29/6, 2021 at 6:45 Comment(0)
C
0

In-app billing relies on the Google Play application, which handles all communication between your application and the Google Play server. To use the Google Play application, your application must request the proper permission. You this by adding the com.android.vending.BILLING permission to your AndroidManifest.xml file:

<uses-permission android:name="com.android.vending.BILLING" />

but for

<uses-permission android:name="android.permission.BILLING" />

I dont see if it has any importance unless in a the newest android version they have a library for such permissions without necessarily have to use Google Play App to handle in-app billing. For more info check here http://developer.android.com/google/play/billing/billing_integrate.html

Coenocyte answered 6/8, 2015 at 10:21 Comment(1)
This is just a confusing answer. Did you read the question? OP asks for the difference between the two.Teague

© 2022 - 2024 — McMap. All rights reserved.