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
swap_chau
Posts: 179
Registered: ‎06-15-2011
My Device: Storm 9550

DigitalGoodsListingListener not working

Hi,

I want to use the DigitalGoodsListingListener to get the list of digitalGoods. But it fails saying that "Could not connect to appworld to verify application origin" errorcode is 1187887053.

I get this error in "error()" method of the listener. "success()" method is not getting called.

 

If I hardcode SKU then I am able to download the digital goods successfully. In RIMs documentation there is no mention of this error or errorcode.

 

 

public void error(String message, int errorCode) {
			final String label = message+errorCode;
			UiApplication.getUiApplication().invokeAndWait(new Runnable() {
				public void run() {
					digitalGoodsLabel.setText(label);
				}
			});
		}

		
		public void success(DigitalGood[] goods) {
			StringBuffer strGoods = new StringBuffer();
			EventLogger.logEvent(23000, "success()::".getBytes());
			for (int i = 0; i < goods.length; i++) {
				strGoods.append(goods[i].getName());
				strGoods.append(goods[i].getPriceSet().getPriceSetValue(PriceSet.PRICE));
				strGoods.append("   ");
			}
			final String label = strGoods.toString();
			EventLogger.logEvent(23000, ("success()::"+label).getBytes());
			UiApplication.getUiApplication().invokeAndWait(new Runnable() {
				public void run() {
					digitalGoodsLabel.setText(label);
				}
			});
		}

 Listener is added using:

DigitalGoods.get(this);

 

 

 

Please help me out here.

 

Thanks,

Swapnil.  

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

Re: DigitalGoodsListingListener not working

Hi Swapnil,

 

Sis you download your application from the App World sandbox? Are you testing on a real device?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
swap_chau
Posts: 179
Registered: ‎06-15-2011
My Device: Storm 9550

Re: DigitalGoodsListingListener not working

Yes Garett, my application is in draft state, and I downloaded that using sandbox account. I am testing it on real device BB curve 8520.

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

Re: DigitalGoodsListingListener not working

Did you run the check to ensure that App World is up to date? What version of App World is installed?

Does this device have a BlackBerry Data Plan?

Can you perform other Payment SDK actions, such as retrieving past purchases using the method available in SDK 1.5?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
swap_chau
Posts: 179
Registered: ‎06-15-2011
My Device: Storm 9550

Re: DigitalGoodsListingListener not working

The device has got latest app world version. There is no BB data plan on the device. Past purchases are not available, but purchase can be done. The application uses latest payment api1.8.

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

Re: DigitalGoodsListingListener not working

What version of App World is being used?

What happens when you try to retrieve past purchases?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Regular Visitor
skatchi
Posts: 1
Registered: ‎09-13-2011
My Device: Bold

Re: DigitalGoodsListingListener not working

Hi,

 

Just to let you know I am also having this problem. I have had it working in the past, but it seems to have stopped working today. I am placing my app as draft on the Vendor Portal, have created a sandbox account, and downloaded it to my device from the App World. I have also got the latest version of the App World installed, version 3.1.2.32.

Please use plain text.
Developer
swap_chau
Posts: 179
Registered: ‎06-15-2011
My Device: Storm 9550

Re: DigitalGoodsListingListener not working

App World version is:3.1.2.32

When I try to retrieve past purchase it says " Could not connect to app world to verify application origin". Same error is shown in DigitalGoodsListingListener as well.

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

Re: DigitalGoodsListingListener not working

Thanks for letting me know. I just tested and it definitely seems that the new APIs added in SDK 1.8 has stopped working. 

 

I will get this investigated right away. Stay tuned for updates.

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

Re: DigitalGoodsListingListener not working

Teams are investigating now. Should have more info shortly...

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