11-28-2012 07:41 AM
Hi,
I packaged my application in webwork sdk 2.3.0.9, my application has payment module, now when i try to run this application in os5,os6 devices i get
Error starting xyz: class net.rim.device.api.ui.scrollview.
But after i removed
<feature id="blackberry.payment" required="true" version="1.0.0.0" />
from my config file the applications seems to work fine.
My application needs both payment and also need to work fine on os5 devices.
Can anyone please guid me through
11-28-2012 10:54 AM
11-29-2012 02:18 AM - edited 11-29-2012 02:20 AM
Hi Erik,
I Tested this with a only 2 file .. index.html and config.xml.. here is my config.xml
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.2">
<name>Some application</name>
<author>Sudeep</author>
<!--
<feature id="blackberry.ui.menu" required="true" version="1.0.0.0"/>
<feature id="blackberry.app" required="true" version="1.0.0.0"/>
<feature id="blackberry.widgetcache" required="true" version="1.0.0.0"/>
<feature id="blackberry.widgetcache.CacheInformation" required="true" version="1.0.0.0"/>
<feature id="blackberry.system" required="true" version="1.0.0.0"/>
<feature id="blackberry.system.event" required="true" version="1.0.0.0"/>
<feature id="blackberry.app.event" required="true" version="1.0.0.0"/>
<feature id="blackberry.invoke.BrowserArguments" required="true" version="1.0.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0.0"/>
<feature id="blackberry.ui.dialog" required="true" version="1.0.0.0"/>
-->
<feature id="blackberry.payment" required="true" version="1.0.0.0" />
<rim: permissions>
<rim: permit>read_device_identifying_information</rim: permit>
</rim: permissions>
<access subdomains="true" uri="*"/>
<icon rim: hover="false" src="imgs/bbIcon.png"/>
<content src="index.html"/>
<rim:loadingScreen backgroundImage="imgs/bbSplashBg.png" foregroundImage="imgs/bbSplash.png" onFirstLaunch="true">
<rim:transitionEffect type="wipeIn" direction="left"/>
</rim: loadingScreen>
<rim: connection>
<id>TCP_WIFI</id>
<id>TCP_CELLULAR</id>
<id>WAP2</id>
<id>WAP</id>
<id>MDS</id>
<id>BIS-B</id>
</rim: connection>
<!--<rim
rientation mode="portrait" />-->
</widget>
my index.html loolks something like this
<html>
<head>
</head>
<body>
I am running fine on this device
</body>
</html>
yet i am geting the same issue as above... let me know if i am doing any thing wrong
Regards
Sudeep K S
11-29-2012 04:48 PM
Hello sudeep,
I just noticed in your initial email you indicated that you are using WebWorks SDK 2.0.3.9, however there is a newer version (2.3.1.5) available for packaging BBOS / WebWorks applications:
https://developer.blackberry.com/html5/download/#s
I have a feeling that this is a result of a mis-use of the scrollview component in the Payment APIs in SDK 2.0.3.9, but should likely be fixed in the newest version.
Can you please download the newest Smartphone WebWorks SDK and attempt packaging with that, then confirm whether you still see issues?
11-30-2012 08:52 AM
Hi Erik,
Tried with the latest sdk(2.3.1.5), issue is still observed also tried with 2.2.0.15, again the same issue, is there any other way to get it done, i have tried it across all the system here. is there any other way to get the payment api working in these devices.
Regards
Sudeep K S
12-03-2012 01:20 PM
Hello Sudeep,
I just tested the following sample based on the code you provided and have reproduced the issue.
config.xml
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.0"> <name>Payment</name> <author>Oros</author> <content src="index.html"/> <feature id="blackberry.payment" /> </widget>
index.html
<!DOCTYPE html> <html> <head></head> <body> I am running fine on this device. </body> </html>
I packaged the application using Ripple 0.9.10, with my configuration set as follows.
Specifically, I used the BBOS Smartphone SDK, BlackBerry WebWorks SDK 2.3.1.5.
The device I tested on was a BlackBerry Bold 9900, running OS 5.0.0.900 (Bundle 1626, Platform 5.2.0.89). Specifically, the most recent Rogers software for the device available here.
The result on launching the application was failure:
I've escalated this to our development teams for review and will follow-up with their response.
12-04-2012 01:00 AM
Hi Erik,
Thank you for this update, I am sure we can find solution to the same since payment is important part of any application development
Regards
Sudeep K S
12-04-2012 04:10 PM
Hello Sudeep,
So our awesome payment guy (Garett Beukeboom) has made some modifications to the payment APIs in an attempt to get this working on OS5; the main changes were including a newer version of the Payment SDK in place of the one that's packaged with the WebWorks SDK by default.
I've attached blackberry.payment.zip to this message, and was hoping you could test it out in your environment to see if you get better results (quick testing here has eliminated the ScrollView issue, but we haven't been able to do extensive payment integration testing yet.)
Basically, you want to replace the current contents of:
C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\ext\blackberry.payment
With the contents of the ZIP file (I would recommend backing up the existing blackberry.payment folder before replacing it.)
Then, when you package your COD file, it should use the updated library instead.
Could you give this a shot and let me know how it goes? I would recommend re-testing on all your target devices as well just to ensure the behaviour is still as expected. If you have any questions, please let me know.
12-05-2012 06:52 AM