corona-docs icon indicating copy to clipboard operation
corona-docs copied to clipboard

Update Needed to Amazon IAP Documentation for Native Builds

Open Colin-Morgan opened this issue 4 years ago • 1 comments

I just received an email from Amazon that they have updated the syntax for the AndroidManifest.xml related to IAP, and in looking into the issue I noticed that the IAP documentation would need to be updated as well. The old code reads:

<receiver android:name = "com.amazon.device.iap.ResponseReceiver">
    <intent-filter>
        <action android:name = "com.amazon.inapp.purchasing.NOTIFY"
            android:permission = "com.amazon.inapp.purchasing.Permission.NOTIFY"/>
    </intent-filter>
</receiver>

Amazon's updated code moves android:permission out of <intent-filter>:

<receiver android:name = "com.amazon.device.iap.ResponseReceiver"
      android:permission = "com.amazon.inapp.purchasing.Permission.NOTIFY">
    <intent-filter>
      <action android:name = "com.amazon.inapp.purchasing.NOTIFY" />
    </intent-filter>
  </receiver>

Colin-Morgan avatar Oct 21 '20 19:10 Colin-Morgan

I received this too. Also note...

What do you need to do?

  1. Check permission element: In the AndroidManifest.xml find the element android:permission = "com.amazon.inapp.purchasing.Permission.NOTIFY". If the element is in the action element move it to the receiver element as suggested above.
  2. Check if consumable receipt is already fulfilled: If you sell consumables as an in-app benefit in your app, implement checks to make sure you don’t fulfill a previously fulfilled receipt. Check your back-end server to see if the receipt has been fulfilled previously. This is described in our SampleIAPConsumablesApp (in the examples directory in the SDK) and our external documentation.

marksolar2d avatar Oct 21 '20 20:10 marksolar2d