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
Highlighted
Developer
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B
My Carrier: BSNL INDIA
Accepted Solution

Invoke BB Apps from a normal webpage

Hi guys, I'm basically a native C++ only developer and that's because I was never able to get my head around HTML/JS. Now, I need a help from you guys.I know it's kinda overkill, but wanna know if it's possible to invoke a BB App from a normal, uncompiled html file? i.e; one that was not built using BB WebWorks SDK?

 

the thing is, I want a webpage which can open the settings as soon as it is loaded on a BB10 device's built-in browser. Any possibilities?

Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Invoke BB Apps from a normal webpage

You mean an external site - somewhere.example,com - opens a BB app in some way?

 

That would be a no

 

Not totally sure what you're trying to do




Click the like button if you find my posts useful!
Developer
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B
My Carrier: BSNL INDIA

Re: Invoke BB Apps from a normal webpage

yes. Exactly it. A script in example.com/page.html opens a BB app.. won't work..??

Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Invoke BB Apps from a normal webpage

Nope

 

Theoretically if you already had something on the BB to handle the request it could work

 

e,g, if you had a BB app that registered itself as a handler for a particular mime type then, only theoretically, it would work

 

If you browse on a BB to Blackberry World then the BBW app opens so its do-able




Click the like button if you find my posts useful!
Developer
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B
My Carrier: BSNL INDIA

Re: Invoke BB Apps from a normal webpage

wait. If I could make an app that declared itself as a target for a mimetype say text/url and some other condition, would the BB framework open my app as soon as such a page is opened?

Developer
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B
My Carrier: BSNL INDIA

Re: Invoke BB Apps from a normal webpage

OR, as you said, is it only theroretical..?? no way to make it into a practical idea?? Smiley Sad

Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Invoke BB Apps from a normal webpage

As I say this is only theoretical but yes, essentially that would work

 

It's actually quite a useful concept - register app/<myapp> as a mimetype then a link on any web page could open it

 

A (very brief) look at the Native docs implies that it is indeed possible as it appears that you can register a mime type as an invokation

 

There is a submission program that allows us to register invocation targets so essentially I would say that it is possible

 

I only quickly looked up the info - no in-depth research

 

It actually gives me a very nice idea for one of my own projects so may investigate properly in a few weeks




Click the like button if you find my posts useful!
Developer
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B
My Carrier: BSNL INDIA

Re: Invoke BB Apps from a normal webpage

thanks man, that would be great.. Smiley Happy

Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Invoke BB Apps from a normal webpage

I've looked into this a little more now

 

I have other things to do immediately but can you prod me at the end of the month in case this one ends up at the bottom of my todo list

 

Tomorrow I'm looking at screengrab - I was going to do this one six months ago Smiley Sad

 

i.e. Remind me or in six months this may be at the same stage

 

I can be easily distracted by really cool things - currently we're looking at Gamepads for WebWorks (cool + sexy) - media-type registration does't have quite that cool-ness factor.

 

e.g. I make links start apps compared to hey, I work with games babe don't get a lot of dates Smiley Happy

 

 




Click the like button if you find my posts useful!
Developer
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B
My Carrier: BSNL INDIA

Re: Invoke BB Apps from a normal webpage

Hi, I thought you already forgot this one.. Smiley Happy

Hey, can u plz make it quick, coz I got this commitment that I had to finish a week before, but is still stuck at 99% coz I can't make my get invoked when a certain website is loaded in the BlackBerry browser. Please, there is an official documentation page on making your app a default app, but following it doesn't get me anywhere. Please, can you look into it immediately and tell me how to do it? Smiley Very Happy