From eb353a447bbc11b4b0122a452ab8089eb8d94fde Mon Sep 17 00:00:00 2001 From: Rockvole Date: Sun, 30 Sep 2018 11:45:40 -0700 Subject: [PATCH 1/2] Add Kindle Fire IAP testing guide --- KINDLE.md | 29 +++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 30 insertions(+) create mode 100644 KINDLE.md diff --git a/KINDLE.md b/KINDLE.md new file mode 100644 index 00000000..8bc8ca47 --- /dev/null +++ b/KINDLE.md @@ -0,0 +1,29 @@ +# Amazon Kindle Fire In-App Purchases Guide + +The plugin will automatically detect Amazon Kindle devices during runtime. + +## Testing In-App Purchases + +To test your purchases, you do not need to create an Amazon developer account. + +Install the Amazon App Tester (AAT) : +[Amazon App Tester](https://www.amazon.com/Amazon-App-Tester/dp/B00BN3YZM2) + +You need to create an amazon.sdktester.json file. Example : +[amazon.sdktester.json](https://github.com/dooboolab/flutter_inapp_purchase/blob/master/ancillary/amazon.sdktester.json) +Edit this to add your own Product Ids. Put this file into the kindle sdcard with : + + adb push amazon.sdktester.json /sdcard/ + +You can verify if the file is valid in the AAT and view the purchases. + +Now, when you make a purchase the AAT will intercept, show the purchases screen and allow you to make a purchase. Your app will think a real purchase has been made and you can test the full purchase flow. + +## Testing Live Purchases +Add your apk into the "Live App Testing" tab. Add your IAP into the "In-App Items" tab. You must fill in your bank details first and submit your IAP so that the status is "live". +Now your testers will be sent a link to the test version of your app. They can make purchases at no cost to test your app. + +## Submitting to the Amazon store +Amazon developer accounts are free. I found the Amazon store the easiest to submit to (compared with Googles play & Apple store). Required screenshots are the same size as a Nexus 7 so that is what I used. +I found the staff who checked my app very helpful (such as providing logcat output on request for example). Text is the same as other stores, except there is an additional up-to 10 bullet point summary of your app you can add. +When you submit your app to the store there will be a warning that google billing is detected in your code. When you submit your app for approval you can mention in the testing instructions for the Amazon reviewer that you are using a cross-platform tool and the google IAP code is not used. I dont know if this is necessary but my app was approved anyway. diff --git a/README.md b/README.md index 41e4149a..8759b5de 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ For help on adding as a dependency, view the [documentation](https://flutter.io/ ## Configuring in app purchase - Please refer to [Blog](https://medium.com/@dooboolab/react-native-in-app-purchase-121622d26b67). +- [Amazon Kindle Fire](KINDLE.md) ## Usage Guide From c28e44f85b16634c03b52cc800dcd4fc84750d1d Mon Sep 17 00:00:00 2001 From: Rockvole Date: Sun, 30 Sep 2018 11:52:22 -0700 Subject: [PATCH 2/2] Minor text spaces added --- KINDLE.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/KINDLE.md b/KINDLE.md index 8bc8ca47..747d7cfc 100644 --- a/KINDLE.md +++ b/KINDLE.md @@ -9,9 +9,12 @@ To test your purchases, you do not need to create an Amazon developer account. Install the Amazon App Tester (AAT) : [Amazon App Tester](https://www.amazon.com/Amazon-App-Tester/dp/B00BN3YZM2) -You need to create an amazon.sdktester.json file. Example : -[amazon.sdktester.json](https://github.com/dooboolab/flutter_inapp_purchase/blob/master/ancillary/amazon.sdktester.json) -Edit this to add your own Product Ids. Put this file into the kindle sdcard with : +You need to create an amazon.sdktester.json file. + +Example : [amazon.sdktester.json](https://github.com/dooboolab/flutter_inapp_purchase/blob/master/ancillary/amazon.sdktester.json) +Edit this to add your own Product Ids. + +Put this file into the kindle sdcard with : adb push amazon.sdktester.json /sdcard/ @@ -25,5 +28,7 @@ Now your testers will be sent a link to the test version of your app. They can m ## Submitting to the Amazon store Amazon developer accounts are free. I found the Amazon store the easiest to submit to (compared with Googles play & Apple store). Required screenshots are the same size as a Nexus 7 so that is what I used. + I found the staff who checked my app very helpful (such as providing logcat output on request for example). Text is the same as other stores, except there is an additional up-to 10 bullet point summary of your app you can add. + When you submit your app to the store there will be a warning that google billing is detected in your code. When you submit your app for approval you can mention in the testing instructions for the Amazon reviewer that you are using a cross-platform tool and the google IAP code is not used. I dont know if this is necessary but my app was approved anyway.