Intents and Channel Linking

 

junaio allows multiple possibilities to link to your channel in the junaio application from other applications or your website.

Those however differ between iPhone and Android phones:

With junaio 3.0, we have also started adding general intents that can be used from within the application (customization click, onTargetDetect, etc), also from outside (currently iDevices only e.g. a browser or external QR Code Scanners).

  • junaio://channel/switchChannel/?id=CHANNEL_ID&filter_poissearch=TERM - This will open a channel and passes a term in the filter_poissearch - GET-Parameter

iDevices (iPhone / iPad / iPod)

If you want to link to your junaio channel from your application or from a web site, you can use the following command:

  • Link to channel with CHANNEL_ID: junaio://channels/?id=CHANNEL_ID
  • Link to iTunes to download junaio for iPhone/iPod:itms://itunes.apple.com/us/app/junaio/id337415615?mt=8
  • Link to iTunes to download junaio for iPad: itms://itunes.apple.com/us/app/junaio-augmented-reality-browser/id426387772?mt=8

In order to be able to link to a junaio channel from your application or website, junaio needs to be installed on the users device. You can also link to a website, which can forward to junaio, if it is available or link to iTunes otherwise:

<html>
   <head>
      <title>Test Browser</title>
      <script type="text/javascript">
	
      var appstorefail = "itms://itunes.apple.com/us/app/junaio/id337415615?mt=8";
      var junaioLink = "junaio://channels/?id=CHANNEL_ID"
	
      function startJunaio()
      {
         window.location = junaioLink;
         applink(junaioLink, appstorefail);
      }
 
      function applink(go, fail)
      {	
         var clickedAt = +new Date;
                  
         setTimeout(function()
         {	                        
            if (+new Date - clickedAt < 2000)
            window.location = fail;
         }, 750);
      }
      </script>
   </head>
   <body onLoad="startJunaio()">	
   </body>
</html>

Android Devices

For Android phones, please use the following links and intents.

  • Force to open junaio and the channel with CHANNEL_ID: junaio://channels/id=CHANNEL_ID
  • Link to Android Market to download junaio: market://search?q=junaio

In order to link to your junaio channel from your Android application, you can use this e.g. an intent like this:

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("junaio://channels/id=CHANNELID"));
startActivity(intent);