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

Web and WebWorks Development

Reply
New Contributor
Skowron
Posts: 2
Registered: ‎12-04-2012
My Carrier: None
Accepted Solution

Lacks in BlackBerry 10 WebWorks SDK

I found that some parts of BB10 WebwWorks SDK are missing comparing to PlayBook for example.

 

The biggest issue right now for me is lack of blackberry.payment method. Whithout it I cannot monetize my freemium app.

  

I also need blackberry.media.camera.takePicture, which is also missing.

 

In whole blackberry object I found only:

 

blackberry.app

blackberry.event

blackberry.notofication

  

Will it change in future or this features are dropped from WebWorks SDK?

 

Please use plain text.
Developer
peardox
Posts: 1,227
Registered: ‎03-20-2011
My Carrier: 3, Orange, Vodafone

Re: Lacks in BlackBerry 10 WebWorks SDK

I was reliably informed (BB Staff contact) that all versions of the BB SDK are merging

 

Yes BB10 is a bit missing at the moment

 

At Jam we were informed that even BB5 is going to bought into the fold as BB has very good sales of 5 in the emerging markets

 

So...

 

5, 6, 7, PB and 10 will eventually merge from an SDK point of view

 

OK - it's not here yet but you I expect to see around PB level SDK before 21st Jan (or I can't launch my app either)

 

A DevAlpha actually reports itself as a PlayBook

 

------------------------------------

 

Like my post? Click the Like button




Click the like button if you find my posts useful!
Please use plain text.
Developer
interfaSys
Posts: 817
Registered: ‎11-19-2009
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Lacks in BlackBerry 10 WebWorks SDK

Payment, NFC, encryption, picture taking, etc.

Many things are still missing.

They had to prioritise their efforts.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.
Developer
peardox
Posts: 1,227
Registered: ‎03-20-2011
My Carrier: 3, Orange, Vodafone

Re: Lacks in BlackBerry 10 WebWorks SDK

For NFC there's a native test app on GitHub that works very nicely

 

I actually use it to code NFC stickers

 

It should be fairly easy for the author to make it into a beta extension

 

I'll give the guy a shout




Click the like button if you find my posts useful!
Please use plain text.
Contributor
Gerii
Posts: 33
Registered: ‎04-30-2012
My Carrier: 3AT

Re: Lacks in BlackBerry 10 WebWorks SDK

According to the docs, navigator.getUserMedia() should be used for camera and microphone access.
http://supportforums.blackberry.com/t5/tkb/articleprintpage/tkb-id/browser_dev@tkb/article-id/148
I'm currently using PhoneGap/Cordova to get a picture which also works fine.
Please use plain text.
Administrator
astanley
Posts: 1,359
Registered: ‎07-02-2009
My Carrier: Bell

Re: Lacks in BlackBerry 10 WebWorks SDK

Thanks for the feedback.

 

Payment is definitely important, and is being focused on right now.  We want to get it right before publishing, so your patience is requested.  It will get there in due time.

 

Note: for the 'missing' blackberry object features, you do need to whitelist any API feature your application will use.  For a complete list of the BlackBerry WebWorks APIs, see this reference guide (filtered by BB10) :

 

https://developer.blackberry.com/html5/apis/bb10_index.html

 

As others have mentioned, getUserMedia is now the HTML5 standard that we follow for camera support.  The blackberry.media API existed only because the standard was not defined/supported at that time.  

 

For a code sample of how to use getUserMedia - see this page:

https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Avatar-Booth

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
BlackBerry Development Advisor
kwallis
Posts: 120
Registered: ‎01-19-2010
My Carrier: AT&T

Re: Lacks in BlackBerry 10 WebWorks SDK

If all you wish to do is capture a picture, you can also use the standard HTML5 media capture approach using an input element:

 

<input type="file" accept="image/*" capture="camera">

 

Check out:

http://www.w3.org/TR/html-media-capture/

 

Note that capture type "microphone" is not supported.

Ken Wallis - Senior Product Manager, WebWorks
@ken_wallis
Please use plain text.
New Contributor
Skowron
Posts: 2
Registered: ‎12-04-2012
My Carrier: None

Re: Lacks in BlackBerry 10 WebWorks SDK

Thanks guys!

 

I totaly forgot about getUserMedia. Of course it works.

 

Waiting for news with payment API.

Please use plain text.