# Any Permissions?

**URL:** <https://forums.solar2d.com/t/any-permissions/316678>\
**Category:** Amazon IAP\
**Created:** [August 8, 2013, 11:47pm UTC](https://forums.solar2d.com/t/any-permissions/316678 "2013-08-08T23:47:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naomi](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Naomi](https://forums.solar2d.com/u/Naomi)\
**Post date:** [August 8, 2013, 11:47pm UTC](https://forums.solar2d.com/t/any-permissions/316678/1 "2013-08-08T23:47:32Z")

</div>

It looks like my implementation of Amazon IAP is working as expected for both consumables and entitlements, including restore functions.

Before I finalize the device build, I’d like to confirm that Amazon IAP does not require any permissions (since it doesn’t mention any on the doc page: [http://docs.coronalabs.com/daily/plugin/plugin.amazon.iap/index.html](http://docs.coronalabs.com/daily/plugin/plugin.amazon.iap/index.html)) &nbsp;I’m about to comment out some permissions as I prepare for release build.

For example, with Google Play version (with IAP and push notification), I add all of the following:

“com.android.vending.BILLING”,

“android.permission.GET\_ACCOUNTS”,

“android.permission.RECEIVE\_BOOT\_COMPLETED”,

“com.google.android.c2dm.permission.RECEIVE”,

“.permission.C2D\_MESSAGE”,

I’m assuming I don’t need to keep any of the above for Amazon IAP to work.

Incidentally, I do have the following for all Android builds:

“android.permission.INTERNET”,

“android.permission.ACCESS\_WIFI\_STATE”,

“android.permission.ACCESS\_NETWORK\_STATE”,

These are needed for me to display ads and what not. &nbsp; But do we also need internet permission for Amazon IAP to work? &nbsp;(If we do, it might be a good idea to add the basic permissions required in the doc page.)

Naomi

---

<div class="post-metadata">

**Author:** ![Naomi](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Naomi](https://forums.solar2d.com/u/Naomi)\
**Post date:** [August 9, 2013, 12:21am UTC](https://forums.solar2d.com/t/any-permissions/316678/2 "2013-08-09T00:21:13Z")

</div>

Okay, it looks like I definitely need some of the permissions added. &nbsp;When I included the following, Amazon IAP appears to work:

“com.android.vending.BILLING”,

“android.permission.GET\_ACCOUNTS”,

“android.permission.INTERNET”,

“android.permission.ACCESS\_WIFI\_STATE”,

“android.permission.ACCESS\_NETWORK\_STATE”,

Please let me know if there’s anything else I should include.

Thank you.

Naomi

---

<div class="post-metadata">

**Author:** ![tamkinp](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tamkinp](https://forums.solar2d.com/u/tamkinp)\
**Post date:** [August 9, 2013, 12:50am UTC](https://forums.solar2d.com/t/any-permissions/316678/3 "2013-08-09T00:50:09Z")

</div>

Hi Naomi,

You should not be required to specify any additional permissions to use the Amazon IAP Plugin. &nbsp;Does the plugin not work when you remove the permissions you mention?&nbsp;

-Preston

---

<div class="post-metadata">

**Author:** ![Naomi](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Naomi](https://forums.solar2d.com/u/Naomi)\
**Post date:** [August 9, 2013, 1:53am UTC](https://forums.solar2d.com/t/any-permissions/316678/4 "2013-08-09T01:53:49Z")

</div>

@Preston, thank you for getting back to me. &nbsp;I appreciate it.

I generated another build without&nbsp;“com.android.vending.BILLING” and&nbsp;“android.permission.GET\_ACCOUNTS”, and it works as it should this time. &nbsp; I still have the&nbsp;INTERNET and&nbsp;ACCESS\_WIFI\_STATE and&nbsp;ACCESS\_NETWORK\_STATE, though.

The problem I encountered earlier was with event.state “restore” in the middle of a game (i.e., dismissing the IAP alert about an entitlement already purchased, which ended up with an activity indicator spinning forever.) &nbsp;I might have not installed the final device build when checking the release build when I encountered the problem.

BTW, I’m curious as to why Amazon IAP works without&nbsp;INTERNET permission. &nbsp;Does not app need to retrieve event data from Amazon server (and does it not need the internet access)? &nbsp;Or does it simply access internet without requiring permission?

Thanks again.

Naomi

---

<div class="post-metadata">

**Author:** ![tamkinp](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tamkinp](https://forums.solar2d.com/u/tamkinp)\
**Post date:** [August 9, 2013, 1:59am UTC](https://forums.solar2d.com/t/any-permissions/316678/5 "2013-08-09T01:59:44Z")

</div>

Hi Naomi,

The Amazon IAP Plugin and Amazon In-App Purchasing SDK operate by communicating with the Amazon Appstore(or Amazon SDK Tester during development) on the device itself.The Amazon Appstore itself is what actually communicates to Amazon’s servers to complete the transaction and results are relayed back through this same interface. The plugin adds an Android broadcast receiver in the AndroidManifest.xml to enable this. There is more information in the Amazon In-App Purchasing documentation [here](https://developer.amazon.com/sdk/in-app-purchasing/documentation/developer-guide.html)

-Preston

---

<div class="post-metadata">

**Author:** ![Naomi](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Naomi](https://forums.solar2d.com/u/Naomi)\
**Post date:** [August 9, 2013, 2:28am UTC](https://forums.solar2d.com/t/any-permissions/316678/6 "2013-08-09T02:28:35Z")

</div>

Hi Preston, thank you for the details and the link. &nbsp;I appreciate it.

Naomi

---

<div class="post-metadata">

**Author:** ![Naomi](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Naomi](https://forums.solar2d.com/u/Naomi)\
**Post date:** [August 9, 2013, 12:21am UTC](https://forums.solar2d.com/t/any-permissions/316678/7 "2013-08-09T00:21:13Z")

</div>

Okay, it looks like I definitely need some of the permissions added. &nbsp;When I included the following, Amazon IAP appears to work:

“com.android.vending.BILLING”,

“android.permission.GET\_ACCOUNTS”,

“android.permission.INTERNET”,

“android.permission.ACCESS\_WIFI\_STATE”,

“android.permission.ACCESS\_NETWORK\_STATE”,

Please let me know if there’s anything else I should include.

Thank you.

Naomi

---

<div class="post-metadata">

**Author:** ![tamkinp](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tamkinp](https://forums.solar2d.com/u/tamkinp)\
**Post date:** [August 9, 2013, 12:50am UTC](https://forums.solar2d.com/t/any-permissions/316678/8 "2013-08-09T00:50:09Z")

</div>

Hi Naomi,

You should not be required to specify any additional permissions to use the Amazon IAP Plugin. &nbsp;Does the plugin not work when you remove the permissions you mention?&nbsp;

-Preston

---

<div class="post-metadata">

**Author:** ![Naomi](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Naomi](https://forums.solar2d.com/u/Naomi)\
**Post date:** [August 9, 2013, 1:53am UTC](https://forums.solar2d.com/t/any-permissions/316678/9 "2013-08-09T01:53:49Z")

</div>

@Preston, thank you for getting back to me. &nbsp;I appreciate it.

I generated another build without&nbsp;“com.android.vending.BILLING” and&nbsp;“android.permission.GET\_ACCOUNTS”, and it works as it should this time. &nbsp; I still have the&nbsp;INTERNET and&nbsp;ACCESS\_WIFI\_STATE and&nbsp;ACCESS\_NETWORK\_STATE, though.

The problem I encountered earlier was with event.state “restore” in the middle of a game (i.e., dismissing the IAP alert about an entitlement already purchased, which ended up with an activity indicator spinning forever.) &nbsp;I might have not installed the final device build when checking the release build when I encountered the problem.

BTW, I’m curious as to why Amazon IAP works without&nbsp;INTERNET permission. &nbsp;Does not app need to retrieve event data from Amazon server (and does it not need the internet access)? &nbsp;Or does it simply access internet without requiring permission?

Thanks again.

Naomi

---

<div class="post-metadata">

**Author:** ![tamkinp](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tamkinp](https://forums.solar2d.com/u/tamkinp)\
**Post date:** [August 9, 2013, 1:59am UTC](https://forums.solar2d.com/t/any-permissions/316678/10 "2013-08-09T01:59:44Z")

</div>

Hi Naomi,

The Amazon IAP Plugin and Amazon In-App Purchasing SDK operate by communicating with the Amazon Appstore(or Amazon SDK Tester during development) on the device itself.The Amazon Appstore itself is what actually communicates to Amazon’s servers to complete the transaction and results are relayed back through this same interface. The plugin adds an Android broadcast receiver in the AndroidManifest.xml to enable this. There is more information in the Amazon In-App Purchasing documentation [here](https://developer.amazon.com/sdk/in-app-purchasing/documentation/developer-guide.html)

-Preston

---

<div class="post-metadata">

**Author:** ![Naomi](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Naomi](https://forums.solar2d.com/u/Naomi)\
**Post date:** [August 9, 2013, 2:28am UTC](https://forums.solar2d.com/t/any-permissions/316678/11 "2013-08-09T02:28:35Z")

</div>

Hi Preston, thank you for the details and the link. &nbsp;I appreciate it.

Naomi
