Launch app from Loxone app, depending on platform

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • J V
    LoxBus Spammer
    • 28.08.2015
    • 367

    #1

    Launch app from Loxone app, depending on platform

    Hello,

    I'm working on controlling Squeezeboxes from the Loxone apps and am using the virtual outputs (I intend to expand the provided xml file with additional commands and will share it, but need to work it out first). There is however a web interface to Logitech Music Server, and there android and iOS apps, which offer more functionality. The question I have is: how can I make the config, so it contains a button that behaves differently depending on the platform:
    Other option is to make 3 different buttons and hide those that would not work, but I also don't know how to do that....

    Thanks!


    Jörg
  • K.Clemens
    Smart Home'r
    • 28.08.2015
    • 92

    #2
    Don't know if it will help, but some interesting info can be found here:
    I need to change out some buttons and text on a mobile website depending on whether the user is viewing it on an Android or iOS browser. Is there a reliable way to perform the check?

    Kommentar

    • J V
      LoxBus Spammer
      • 28.08.2015
      • 367

      #3
      Interesting, and may be useful!
      I was thinking of using the App function block: http://www.loxone.com/enen/service/d...locks/app.html , to launch an App on either iOS or Android.
      Problem is that the App function block is not platform aware... It may be possible to use the code you posted to identify the platform and then launch accordingly. I'll have to look into it more...

      Kommentar

      • J V
        LoxBus Spammer
        • 28.08.2015
        • 367

        #4
        I think I found it: Virtual input.
        Find out more about Loxone Config and the Virtual Inputs and Output connections that can be made!

        They write
        -
        With the virtual inputs various different types of input options can be set. That is, the inputs can be configured to show up differently in the visualisation whether it be on an iPhone, iPod, iPad, Android phone, or browser. The options are switch, push button, left-right buttons, and up-down buttons.
        -
        So I should be able to add a virtual input that e.g. just shows up on iOS (which launches the iOS app I want), one for android and one for browser.
        Haven't tried it yet though...

        Kommentar

        Lädt...