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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
miamon
Posts: 142
Registered: ‎08-17-2008
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
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,693
Registered: ‎10-16-2008
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
Please use plain text.