06-08-2013 04:42 PM
I am using Phonegap to develop my BB10 app. I am using childbrowser to do twitter oauth and am having trouble with attaching events to detect the URL change to capture the access token. Per the documentation for phonegap here: http://docs.phonegap.com/en/2.7.0/cordova_inappbro
So, my dilemma is that I cannot use this script either: https://github.com/blackberry/BB10-WebWorks-Sample
Has anyone else run into this issue. I am not sure how to proceed.
06-09-2013 02:48 PM
The Cordova/Phonegap implementation for BB10 is still a work in progress
You don't actually need it as WebWorks is way more advanced
Have yuo thought about simply re-coding it directly for WebWorks?
It's fairly simple to do such things
Personally I start with WebWorks then deploy to other targets as it's easier that way
Taking a WebWorks project and making it iOS / Android is stupidly easy
06-09-2013 02:52 PM
My app is actually a Sencha Touch app which is packaged in Phonegap to run on both Android and iOS. I am now porting it to BB10 and thus I do not have the opportunity to re-code it directly in Webworks.
06-09-2013 03:08 PM
I apologise then
Sencha is one of the few frameworks I don't play with
What Cordova-specific stuff are you using?
I can probably back-port it if you PM me - strip out the Cordova and throw in WebWorks
I need to know, specifically, which bits of Cordova you're using - if just browser (easy)
The project remains yours - I just fix stuff
06-09-2013 07:07 PM
I would suggest upgrading to 2.8.0 if possible. The BB10 implementation has been refreshed and the native child browser is now exposed.
06-09-2013 09:21 PM
For Phonegap 2.8.0 there are two choices:
2. Blackberry 10
Option 2, BB10 requires me to download the native SDK? Is this the one that I should be using? I have been using option 1 so far where I start out by copying the example folder for the webworks project.
06-09-2013 10:18 PM
You'll want to use the "blackberry10" sub folder (option 2).
The new implementation does not rely on WebWorks - essentially it includes WebWorks, minus the native packaging and deployment tools.
Installing the NDK will give you those tools, but if you already have WebWorks installed you can get up and running by adding the "dependencies\tools\bin" folder to your path. You will also need to install node js.
06-10-2013 11:25 AM
Cordova 2.8.0 includes Mac OSX support
Its pretty basic right now - we used the pre-release for testing
As long as you are minimal on platform specifics you can now open up a new market
Just a FYI
06-10-2013 11:27 AM
Thanks bryanhiggins. I am going to try upgrading to Phonegap 2.8 and setup the NDK and see If I can get the childBrowser issues resolved. I will report back if I have any success.
06-10-2013 11:36 AM
PG 2.8 looks good but is still now fully integrated into WW
The aim BB have at the end is that PG becomes a base with WW adding extra stuff
Are you ONLY trying to child a broswer or are there other PG features you are using?