This object is in archive! 

Allow custom URL schemes or intents in Quick WWW bookmarks

Bryan McBride shared this idea 8 years ago
Completed

I'm trying to launch another app by invoking its custom URL scheme fulcrumapp://new-record and passing some additional parameters (lat, lng). I was hoping I could use a Quick WWW bookmark for this, but it only seems to accept http:// URLs. I've also tried the "Add link to app" button in the set functions panel dialog, but that doesn't give me the opportunity to define additional parameters like the WWW bookmark settings. Does this make sense and do you have any ideas how this might be accomplished? Thanks!


-Bryan

Replies (5)

photo
1

Hello Bryan,


nice idea. This is currently not possible. Anyway if you give me link on app that I may use for testing and also exact Uri you expect to work, I may check what I may do with it.

photo
1

Thanks Menion! The app is a mobile field data collection app called Fulcrum (I work on the Fulcrum Team). You can sign up for a free trial account by going to https://web.fulcrumapp.com/users/sign_up and you can download the free Android app here. Here are some examples of how it works: http://developer.fulcrumapp.com/general/url-actions/#examples.


This would allow users in Locus to quickly create a new record at a specific location in Fulcrum by launching the app with something like this:


fulcrumapp://new-record?form_id=c55adab9-916d-46e9-98aa-7a2388a77b24&latitude=28.038046&longitude=-81.952514

We really love Locus Map and blogged about it a while back! This integration will give us even more reason to recommend Locus to our users. Thanks again!


-Bryan

photo
1

Hello Bryan,


thanks for extra information. I added support for custom protocols, like in this example for "fulcrumapp://", so in next version it should work. I've not yet enabled free trial as it was not absolutely needed. In case, it won't work with next version of Locus, let me know and I'll try it more precisely.


And nice blog post! I've forwarded it to Michal, who will promote it somewhere (maybe) as he's an head of our single-person marketing department :)

photo
1

Awesome! Thanks again and we'll certainly be doing some more blogging about Locus! Looking forward to the next update.

photo
1

This is working perfectly as expected! Thanks a lot.

photo
1

"As expected" ... well I wasn't 100% sure :), but I'm glad it works! Perfect

photo
1

How about mapitem:// as well? :-)

photo
1

Don't understand. Locus do not have support for such protocol or it's some other application?

photo
1

It's a reference to this topic: http://help.locusmap.eu/topic/interface-external-urls-with-position-parameters

But a locusmapitem:// URI scheme would be even more flexible I guess. Locus downloads the URL data, stores it in mapitem folder, enables it as mapitem, done. We could use that "externally" to directly display things in Locus from our webpages (without the need for importing). Or "internally" via the quick www bookmarks function.

photo
1

What I just enabled for Bryan is support for another url that is called from Locus after tap on button, but Locus itself do not handle anything, it just send information into Android space. What you needs is some handling of responses directly by Locus, but this is something completely different.

photo
1

Of course it's different... but closely related :-).


And "handling responses" really is just download some data of the web and store it in a file somewhere... not exactly rocket science.


On a second thought... could we maybe already do this via locus-action:// ? Is it possible to download, store and enable as a mapitem with those?

photo
1

like


  1. <locusActions>
  2. <download><source>http : / / supercool.php?lat=1&lon=2</source><dest>/mapItems/supercool.kmz</dest><after>enableMapItem supercool.kmz</after></download>
  3. </locusActions>

Replies have been locked on this page!