question

x1210x avatar image
x1210x asked

called PurchasingService.purchase(), but not appear PurchaseActivity

Hi. I called PurchasingService.purchase(), but not appear PurchaseActivity. And when I pressed back button, PurchaseActivity is appeared returning to previous activity. I don't know why PurchaseActivity does not appear when I wanted. below is log when PurchaseActivity is appearing. 11-19 09:06:41.229 921-9745/? W/ActivityManager: Input dispatching paused for current ActivityRecord: ActivityRecord{42543300 u0 com.amazon.venezia/com.amazon.mas.client.iap.purchase.PurchaseActivity t108} 11-19 09:06:41.269 921-9745/? D/AmazonTransitionManager: openingActivityName = com.amazon.mas.client.iap.purchase.PurchaseActivity, animationType = Activity open/close (tablet:FADE phone:SLIDE) 11-19 09:06:41.419 921-949/? I/ActivityManager: Displayed com.amazon.venezia/com.amazon.mas.client.iap.purchase.PurchaseActivity: +144ms (total +2s678ms) thank you.
iap
10 |5000

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

WangChao@Amazon avatar image
WangChao@Amazon answered
Hello, Could you please tell us how to reproduce this? Does this happen with an app Live on Amazon Appstore, or Live App Testing? Thanks.
10 |5000

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

x1210x avatar image
x1210x answered
Hello, Both on Amazon Appstore and on Live App Testing. My app is "Polaris Office - PDF, PPT, XLS, DOC". to reproduce this, [b]Setting > Upgrade Account > press price button[/b] Thanks.
10 |5000

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

WangChao@Amazon avatar image
WangChao@Amazon answered
I tried your app, and found that there comes a loading spinner after the "Price" button is clicked. Could you please confirm that there is no other services or API initiated together with PurchasingService.purchase()? Because, to me, that loading spinner does not come from Amazon. Thanks. Please check https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/cx-ux-guidelines-copy for IAP UI/UX best practices.
10 |5000

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

x1210x avatar image
x1210x answered
Hello, after "Price" button clicked, the flow is like below : 0. show loading spinner 1. start an activity. -> finish activity (but, not visible) 2. call a server API -> handle server response 3. call PurchasingService.purchase() Does any step before calling PurchasingService.purchase() interrupt showing PurchaseActivity? thank you.
10 |5000

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

WangChao@Amazon avatar image
WangChao@Amazon answered
Hello, That is a lot of things before PurchasingService.purchase(). I believe the best solution here is to add logs in your source and do some debugging in LAT. Thanks.
10 |5000

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

x1210x avatar image
x1210x answered
Hello, I removed above steps 0~2,so when I clicked the price button, called PurchasingService.purchase() immediately. but I got the same result in LAT. To solve this issue, which log should I add? Thanks.
10 |5000

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

WangChao@Amazon avatar image
WangChao@Amazon answered
We are checking your LAT and will get back to you soon. Thanks.
10 |5000

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

WangChao@Amazon avatar image
WangChao@Amazon answered
Hello, Based on what we can see from the logs, it seems like you are starting an activity that PurchaseActivity will also appear on. From the looks of it "ActPOSettingPaymentMethod" is blocking PurchaseActivity from coming up. Please investigate what it is doing and whether it is spawning a dialog that prevents PurchaseActivity from displaying. Thanks. This is when we click the "39.99" Annual button 12-15 15:48:36.480 I/ActivityManager( 600): START u0 {cmp=com.infraware.office.link/com.infraware.service.setting.payment.ActPOSettingPaymentMethod (has extras)} from uid 10029 on display 0 This is after we click the "39.99" Annual button and click the back button 12-15 15:48:43.797 I/ActivityManager( 600): START u0 {cmp=com.amazon.venezia/com.amazon.mas.client.iap.purchase.PurchaseActivity (has extras)} from uid 10029 on display 0
10 |5000

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

x1210x avatar image
x1210x answered
Hello, In my payment scene, you could see "Smart" and "Pro" tabs. If you select "Smart" tab, it'll call PurchasingService.purchase() immediately when you click "39.99" button. If you select "Pro" tab, it'll start "ActPOSettingPaymentMethod" and call PurchasingService.purchase(), when you click "39.99" button. but the result is same on both of cases. Thanks.
10 |5000

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