traccar-web icon indicating copy to clipboard operation
traccar-web copied to clipboard

deepLink support for mobile

Open tsmgeek opened this issue 8 years ago • 7 comments

Would be cool that the website can support deeplinking so that if link is clicked from email to an event it would open up in app installed on the phone rather than browser. Of course this still direct to website then it will open the app.

tsmgeek avatar Aug 06 '17 21:08 tsmgeek

Interesting idea, but the problem is that you can only deep-link to pre-defines domains.

tananaev avatar Aug 06 '17 21:08 tananaev

Would a custom url handler work? In browser it may be possible to check this.

traccar://?event=100

tsmgeek avatar Aug 06 '17 22:08 tsmgeek

But then if you don't have an app on your phone, it would be completely useless. Even worse if you want to check it on a desktop.

tananaev avatar Aug 06 '17 22:08 tananaev

The link would not be in the email, it would be via a redirection in the browser.

I came across this example. https://developers.tune.com/sdk/deep-linking-to-your-mobile-app-from-your-website/

tsmgeek avatar Aug 06 '17 23:08 tsmgeek

It still forces user to download a mobile app.

tananaev avatar Aug 06 '17 23:08 tananaev

Could do it this way.

  1. user clicks link in email
  2. browser loads site
  3. if isMobile() then show user message if they app installed and they want to open there instead, or just put additional button on login form.
  4. this could be recorded in localstorage or cookie for site
  5. next time they come to site, check what they answered last time and just open app straight away.

The only thing this can not handle is if a user has multiple logins but that is a side case scenario unless certain data is encoded into the email link such as a one time key.

tsmgeek avatar Aug 06 '17 23:08 tsmgeek

I like the idea.

tananaev avatar Aug 06 '17 23:08 tananaev