question

tmitra1989 avatar image
tmitra1989 asked

Not Getting In-App Purhcasing CallBack

Hi .. I am stuck for 5 days regarding Inn-App purchase flow. I have uploaded a version with amazon in-app 3 months ago in Amazon store. It worked well. I was able to sell in-game items through it. But, few days ago, I launched a new version of it including amazon mobile ads. And surprisingly, my app was rejected 4 times due to in-app purchase error. I don't have any clue about this. My previous version worked so well, and in this version, I maintained all the purchasing flow exact same. There is a new settings in my developer portal called Security Profile. I have not include it in my app.Is that any related to in-app purchasing ? (I also included amazon game circle in my app). Amazon team, send me a log report. There I can see, onSdkAvailable received: Response -false. That means, my app is getting Live response. But, after that, my app is not receiving any type of purchase call back. In my code, I have done something like this, If user select a ipp-app package from a list, I run this code, private void initiateAmazonAdsPurchase(boolean type) { PurchasingManager.registerObserver(new AmazonPurchaseObserver(this)); PurchasingManager.initiatePurchaseRequest(((type)?AmazonPurchaseObserver.SKU_ADV_ONE_YEAR:AmazonPurchaseObserver.SKU_ADV_HALF_YEAR)); } AmazonPurchaseObserver constructor is like following, public AmazonPurchaseObserver(final BaseActivity mBaseActivity) { super(BaseActivity); consumeSuccess = false; sku = null; this.baseActivity = BaseActivity; } then, @Override public void onSdkAvailable(final boolean isSandboxMode) { Log.v(TAG, "onSdkAvailable recieved: Response -" + isSandboxMode); PurchasingManager.initiateGetUserIdRequest(); } Rest of the AmazonPurchaseObserver class is exactly the same as ButtonClicker example. And, I dont register observer in onStart() method due to unwanted function call. I like to call it, when app needs it. Is there anything wrong ? the same code works fine on previous version. Here, BaseActivity is the main base class, and all other activities are extended from it. The receiver is properly set on the manifest. I use following lines in proguard, -keep public class com.amazon.** -keepclassmembers public class com.amazon.*{ *; } -dontwarn com.amazon.** As I dont have any real kindle fire device, so, resolving this issue is getting difficult for me. I am testing the app installing amazon test client in my android device. And, everything works fine there. Please help me out ..
iap
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dixith@Amazon avatar image
Dixith@Amazon answered
Hi, Thank you for your post. Since this is an App specific issue, please raise a ContactUs ( https://developer.amazon.com/help/contactus.html) with your app details and one of our support engineers will help you fix the issue.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tmitra1989 avatar image
tmitra1989 answered
Thanks Dixith, I have contacted through Contact Us, and you guys have suggested me to make sure that True is passed to onSDKAvailable. But every time it false is passed. Can you tell me, what I have to do that my IAP API calls will performed in a "Live" mode ?
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tmitra1989 avatar image
tmitra1989 answered
hey Dixith, thanks for your reply. I need to be sure just one more time.. I would like to elaborate. At first, I submitted the app with IAP purchase. It runs well. But, in my second version, I intregated amazon ads and submitted. But now I am getting bug report regarding IAP purchase from your amazon testing team. I maintained all the logic well, there should not be any problem. Updated the code several time, and submitted for testing (didnt update version code and version name). But getting the same report again from your end. The main problem is, amazon testing team is not getting live response i.e IAP API calls are not being performed in a "Live" mode. So my questions are, 1. How to make sure that IAP API calls perform in a "Live" mode ? Is there any settings which have to handle at amazon mobile distribution portal ? 2. Is updating version code and version name will solve that problem ?
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Tamal, The problem is we are unable to track your app and see what the problem is. Because you are not using the account (associated with the app has this problem) to post in forum. The ContactUs case what you raised, I think that is from the account owns the app. To Answer your question, 1. If IAPs works fine with dummy json data, you can submit the app to the store. No need to enable anything in the app settings in portal. In the live version of your app would start communicating the live IAPs. So, the boolean passed to onSDKAvailable would always be false in the version you submit to us and would always be true in the live version. 2. With out changing the version code you can not submit a new version. The issue you are facing is very strange. I am going to send a mail from my official Id, please send me your app details in the reply as I can not ask you in the public forum.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tmitra1989 avatar image
tmitra1989 answered
thanks Sujoy, I have replied to your mail. Please check it.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Tamal, I have received your mail. And I can repro the issue what is reported by our team. I will take a closer look on the issue and get back to you. Sorry for the inconvenience.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Tamal, I just reopened and replied the ContactUs case you raised for this issue. Please continue our further conversation there since it's an app specific issue and should not be discussed publicly.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rajat Agarwalla avatar image
Rajat Agarwalla answered
Hello Sujoy, I have sent a reply to your email. I hope that will reach you since the address started with "no-reply". Regards, Rajat
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Though we have communicated separately to the developer about the issue, but I think this might be useful for the community. It was a proguard problem. PurchasingManager Class is getting obfuscated (as is the rest of the IAP library) in the latest version. I assume the code flow is different in sandbox and live environments. So I would strongly recommend all the developers[b] not to obfuscate the IAP library at all[/b]. I would also recommend to apply the same rule for all third party libraries that you are using in your project for safety since you do not own them. So there is no point to encrypt the third party libraries as the jars are already openly available.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.