On Fri, Dec 19, 2014 at 11:07 AM, Mitchell Reese <d...@curiouslegends.com.au> wrote: > Hi Ted, thanks for your reply. I've just been testing the url-dispatcher > functionality with my CUA webbanker app - this is online banking using the > CUA mobile website - I use this almost daily. > > Anyway, having followed the instructions from the guide below, and also your > app example, it doesn't seem to work. Using the browser still navigates to > the site I'm trying to get opened in the webapp - all that happens is the > page opens in a browser instead. Does this not work within the browser, and > is only for scopes/other apps? I haven't tested this within anything else > yet.
That’s right, the URL dispatching mechanism is not hooked into the browser: clicking on a link in a webpage will always open that link in the browser. Anything else goes through the URL dispatcher, as far as I know (i.e. hyperlinks in apps and in scopes, provided they are not being rendered by a WebView). > > Also, the documentation for url-dispatcher is very convoluted. I had to read > it several times, and still carefully study your example to figure out what > was going on. Neither is the url-dispatcher mentioned in the webapp guide on > the developer.ubuntu.com site. Also, once the line > > |"urls": "foo.url-dispatcher" > > | > > is added to the manifest.json, it can no longer be opened in the Ubuntu > Manifest Editor within the sdk. > > Cheers, > > Mitchell > > || > > > On 11/12/14 10:18, Ted Gould wrote: >> >> On Thu, 2014-12-11 at 09:50 +1100, Mitchell Reese wrote: >>> >>> * Are there any plans to further integrate this with the system? >>> o i.e., When I choose a Youtube or Vimeo video from the scope, I'm >>> directed to the Web-browser. What would be better would be to >>> open that link within a webapp specific to that site. Is this >>> functionality that could be included with the images? I'm >>> imagining something like 'Default Applications' in the System >>> settings, where an application (webapps included) could be >>> marked as the default to handle certain links. This would be a >>> much slicker experience. >> >> >> Any app (including webapps) can register to be opened for a URL using the >> URL Dispatcher. Docs are here: >> >> http://developer.ubuntu.com/apps/platform/guides/url-dispatcher-guide/ >> >> You can see an example in the small webapp I did: >> >> https://github.com/ted-gould/nespresso-webapp >> >> We do plan to have a user override for this in settings, currently on the >> TODO list. Currently if you install a webapp that handles the URL it will >> always handle the URL. >> >>> o Is there any possibility of coding a different opening for the >>> webapp, so that there is a slicker default transition when the >>> page is loading? >> >> >> Not entirely what you're asking for, but a start in this bug: >> >> https://bugs.launchpad.net/webbrowser-app/+bug/1387245 >> >> Ted >> >> >> > > > -- > Mailing list: https://launchpad.net/~ubuntu-phone > Post to : ubuntu-phone@lists.launchpad.net > Unsubscribe : https://launchpad.net/~ubuntu-phone > More help : https://help.launchpad.net/ListHelp -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp