Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Regular Contributor
jcentricity
Posts: 62
Registered: ‎09-28-2012
My Device: BlackBerry Bold
My Carrier: Verizon

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

Hello,

I am using Google IAP also. My app was approved but I user reports on Playbook 2.1 when they make an inApp purchase the app crashes. My app works in GooglePlay and the inApp IDS are correct. How can I debug this?
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

If the app crashes there are definitely issues. Try debugging on your device, even with the payment failing it should not crash your app.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Regular Contributor
jcentricity
Posts: 62
Registered: ‎09-28-2012
My Device: BlackBerry Bold
My Carrier: Verizon

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

Can you point me to the location of crash logs or any other logs I can use to debug the issue?
Please use plain text.
BlackBerry Development Advisor
jdreher
Posts: 82
Registered: ‎11-21-2008
My Device: Z10
My Carrier: Bell

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

You can debug the application and the point of failure using the standard ADT tools, via adb, while debugging the project as a BlackBerry Android Launch.

 

BlackBerry Runtime for Android apps - Test Your Application

http://developer.blackberry.com/android/documentation/test_your_app_2016796_11.html

James Dreher
BlackBerry Development Advisor
Please use plain text.
Regular Contributor
jcentricity
Posts: 62
Registered: ‎09-28-2012
My Device: BlackBerry Bold
My Carrier: Verizon

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

I am testing against my live app in Appwrodl

 

I am testing on PlayBook OS Version

 

OS Vesion 2.1.0.1314 and inApp purchasing is not working

I made purchase got the Confirm Purchase Screen.

 

It shows my inApp unique ID along with price and so on.

 

It shows Payment method with my credit card info

 

I click BUY button it returns to my app.

 

But I checked my credit card and in the inApp purchase is not made

 

Also the inApp purchase is not added to user profile in my account.

 

inApp ids are correct.  It appears the actual purchase is not going through.

 

Any ideas?

 

Kwame

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

Hi Kwame,

 

Is your BBID listed in the sandbox accounts section of the vendor portal? If so any purchases of your own apps would not result in charges.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Regular Contributor
jcentricity
Posts: 62
Registered: ‎09-28-2012
My Device: BlackBerry Bold
My Carrier: Verizon

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

I have a similar problem. Just bought Playbook I have latest update. I am using Google IAP. When I click BUY button I am redirected back to my app but the purchase does not go through. I checked my credit card. Also there is rotation issue. When I have hold Playbook in Landscape position screens in my app are displayed in Landscape but then I hit one screen that is displayed in portrait. Any ideas on why its not displayed in Landscape like other screens?
Please use plain text.
Regular Contributor
jcentricity
Posts: 62
Registered: ‎09-28-2012
My Device: BlackBerry Bold
My Carrier: Verizon

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

Ok,

 

I see credit card purchase but make app does not recognize the purchase occurred

 

I have a BUY or Paid icon next to each inApp.

 

inApps I bought still say BUY

 

I even have a Restore button that works with Google IAP that goes out to Google Play and synchs

 

the inApps in my app with Google Play and it works but not on Playbook

 

For some reason my app does not recognize purchase occurred

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

What prompts do you get?

Is your BBID in your vendor portal's sandbox account?

How was the app installed?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Regular Contributor
jcentricity
Posts: 62
Registered: ‎09-28-2012
My Device: BlackBerry Bold
My Carrier: Verizon

Re: Debugging Playbook Beta 2.1 In App Purchase (IAP)

The email address is no longer in the sandbox.

 

I click a BUY button in my app.

 

I get the BlackBerry purchase screen.  It shows the ID for the inApp item and price.

 

I click BUY.

 

I see transaction on my credit card but inApp in my application still says BUY instead of PAID.

 

I have a Restore button to synchs the inApps with whats in the Store.  It works with Google Play.

 

When I click the button I get this message "You have no purchases"  which is my custom message

 

that means the app could not find our inApps in the store.  This can't be because I just paid for one.

 

Also when I try to buy again I get prompt saying I already paid for it which is correct.

 

For some reason my app is not aware the purchase has happened

Please use plain text.