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

Posts: 185
Registered: ‎08-17-2008
My Device: Red BlackBerry Z10
My Carrier: Vodafone
Accepted Solution

widgets: how detect access

Hi, Exist some method for detect if a webpage is accessed by a Widget or BlackBerry Browser? Thanks
Josep Maria
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: widgets: how detect access

In the config.xml you can create your own header value that will be passed down to every website.  This is done by specifying your own custom value in the rim:header attribute of the base <widget> element.


That way you will be able to distinguish between a widget hitting your web page vs the general BlackBerry Browser.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter