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
Contributor
Posts: 10
Registered: ‎05-20-2013
My Device: Blackberry q10

How to differ BB browser and Webworks Application

There are several different ways to do this, likely the easiest is to check window.webworks orwindow.blackberry as both should exist by default in a webworks application.

Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10

Re: How to differ BB browser and Webworks Application

What is the specific use case you are trying to solve?

 

@erikjohnzon
erjohnson@blackberry.com
Contributor
Posts: 10
Registered: ‎05-20-2013
My Device: Blackberry q10

Re: How to differ BB browser and Webworks Application

i m just posting some useful cases with answer which i have faced  to help other.

Contributor
Posts: 19
Registered: ‎09-18-2013
My Device: Developer

Re: How to differ BB browser and Webworks Application

Is there any case in wich the windows.webworks would be 'undefined'? maybe a missing plugin?

I'm having that error in my app, I'm using WebWorks SDK 2.0.0.54 with Cordova 3.2 and the error shows in the Push Service plugin.