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
nimmagadda
Posts: 6
Registered: ‎08-22-2012
My Device: Blackberry Torch OS 6 and 7
My Carrier: ATT

Need help invoking my webworks app from email link

I developed a blackberry webworks application using phonegap.Tested the application on blackberry torch 9800 and it is working fine.

                 I need to load this app when user clicks a link in the email from blackberry. Can someone suggest a solution for this.

 

 

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 805
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Bell

Re: Need help invoking my webworks app from email link

This is possible but you need to create an extension for it to use the Java API with WebWorks/PhoneGap.

 

Start with the Extension Template from here: https://github.com/timwindsor/WebWorks-Community-APIs/tree/master/Smartphone/TEMPLATE

 

Then you need to add the methods so that you can register the fully qualified domain in the HttpFilterRegistry: http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/io/http/HttpFilterRegistry.htm...

 

Note that this API is pretty heavily restricted, so depending on where you run the app, it may be locked down by the IT Admin. Another option would be to use the StringPatternRepository to define a pattern instead of using a URL. Of course that depends on the specifics of your use case: http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/util/StringPatternRepository.h...

Tim Windsor
Application Development Advisor II
Please use plain text.
New Contributor
nimmagadda
Posts: 6
Registered: ‎08-22-2012
My Device: Blackberry Torch OS 6 and 7
My Carrier: ATT

Re: Need help invoking my webworks app from email link

Thanks for the info.I have gone through the links that you suggested.I want to know if there is any sample code to startup with.

                   I am also interested to know more examples on this StringPatternRepositor.

         

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 805
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Bell

Re: Need help invoking my webworks app from email link

If you download the Eclipse Plugin for BlackBerry Java, it will contain samples for both APIs if I remember correctly.

Tim Windsor
Application Development Advisor II
Please use plain text.