MobileSheets Forums
Smart button that links to a url - Printable Version

+- MobileSheets Forums (https://www.zubersoft.com/mobilesheets/forum)
+-- Forum: Support (https://www.zubersoft.com/mobilesheets/forum/forum-1.html)
+--- Forum: MobileSheets (Android) (https://www.zubersoft.com/mobilesheets/forum/forum-23.html)
+--- Thread: Smart button that links to a url (/thread-5436.html)



Smart button that links to a url - josjojo - 05-29-2019

Is there a way to add a smart button to a page that links to a url? I want to create a link to a Spotify song like this: https://open.spotify.com/track/1Xi84slp6FryDSCbzq4UCD?si=KEtCF4FdT22JOUTUVlnUlA


RE: Smart button that links to a url - Zubersoft - 05-30-2019

That is being added with the next update which I'm finishing up and releasing as soon as possible. Triggering the URL will bring up whatever application the OS thinks should handle that url. Hopefully this will all work for what you are wanting.

Mike


RE: Smart button that links to a url - josjojo - 05-30-2019

That's exactly what I mean. Thanks for adding this feature.


RE: Smart button that links to a url - sciurius - 05-31-2019

Hmm. I would have expected "https://open.spotify.com/..." to open the web browser but it does open the Spotify app on Android. Trickery?


RE: Smart button that links to a url - Zubersoft - 06-01-2019

One of things you can do on Android is to enter "intent-filter" values in the manifest which indicates what types of data your application can handle. These xml entries allow you to specify the uri scheme, mimeType, etc. Spotify most likely set up an intent filter to match on a uri that contains https://open.spotify.com so that their app will trigger instead of a browser. I use these intent filters in MobileSheetsPro so that my app is listed as one that supports, pdf, images, chord pro, text files, .msf files and .mss files. 

Mike