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

BlackBerry® World™ Development

Reply
Developer
thubalek
Posts: 322
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB
My Carrier: BleskMobil

Re: BB World Delivering old version of the app


gbeukeboom wrote:

 

Does your app happen to check for existing purchases when it first launches?


No, in this version it was removed (originally it was there) and it looks like it got worse. I'm getting more Payment System Busy errors.

How I can debug what is wrong?

--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: BB World Delivering old version of the app

Create a debug version of the app that either displays the log to the screen or dumps it to a file, then upload and test from BlackBerry World.

 

I would strongly recommend implementing a MUTEX though, it's fairly simple to do and should save you a fair amount of time in testing these kinds of issues. The FreemiumSampleApp uses MUTEX logic:

https://github.com/blackberry/Cascades-Community-Samples/blob/master/FreemiumSampleApp/src/PaymentSe...

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

Re: BB World Delivering old version of the app

Update to the original issue: Error codes have been posted to the Cascades docs site with a new class introduced in 10.2:

https://developer.blackberry.com/cascades/reference/bb__platform__paymenterrorcode.html

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
thubalek
Posts: 322
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB
My Carrier: BleskMobil

Re: BB World Delivering old version of the app

I don't think it is related to MUTEX (I'm clearly not calling this API simultaneously)

 

I would more suspect that is is somehow related to checking of purchase status from BB World Cache. Is it possible? 

--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: BB World Delivering old version of the app


thubalek wrote:

I don't think it is related to MUTEX (I'm clearly not calling this API simultaneously)

 

I would more suspect that is is somehow related to checking of purchase status from BB World Cache. Is it possible? 


If it were I would suspect many more reports of this issue, which we are not seeing. This leads me to think it is app-specific.

 

"I'm clearly not calling this API simultaneously" <== from the code snippet this cannot be determined, it depends much on the code calling your payment service class. The *only* times I have ever seen this error is if:

1) Simultaneous calls are attempted

2) The app makes a rogue call that hangs the payment service (I have only every seen this when using the C APIs)

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
thubalek
Posts: 322
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB
My Carrier: BleskMobil

Re: BB World Delivering old version of the app

Ok, I'll try to somehow change my code and see if it helps. 

--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Please use plain text.
Developer
thubalek
Posts: 322
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB
My Carrier: BleskMobil

Re: BB World Delivering old version of the app

BTW: Good news for you. It was issue in my code, I mangled BlackBerry World Response code and my internal status codes.

Thanks for your time.
--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: BB World Delivering old version of the app


thubalek wrote:
BTW: Good news for you. It was issue in my code, I mangled BlackBerry World Response code and my internal status codes.

Thanks for your time.

Great to hear!

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.