If you are on a mobile app w/ harvest installed, clicking "Link Mobile App" is a nice feature. But there are other scenarios we should handle:
-
User isn't on iphone at all -- we should check user agent or similar and make sure they are on ios before showing the authorize button. Maybe just display some text that says open your iphone and download XYZ app.
-
User is on iphone but doesn't have harvest installed. maybe easiest is to use a smart app banner <meta name="apple-itunes-app" content.... /> which will at least show a banner that says install/view at the top of the page. But also if the user clicks the authorize button but doesn't have the app installed nothing will happen, it'll fail silently. might be solved by some help text? but a nicer UI would be to attempt to authorize the user but if the app doesn't open then we can consider it to mean the app isn't installed.
If you are on a mobile app w/ harvest installed, clicking "Link Mobile App" is a nice feature. But there are other scenarios we should handle:
User isn't on iphone at all -- we should check user agent or similar and make sure they are on ios before showing the authorize button. Maybe just display some text that says open your iphone and download XYZ app.
User is on iphone but doesn't have harvest installed. maybe easiest is to use a smart app banner
<meta name="apple-itunes-app" content.... />which will at least show a banner that says install/view at the top of the page. But also if the user clicks the authorize button but doesn't have the app installed nothing will happen, it'll fail silently. might be solved by some help text? but a nicer UI would be to attempt to authorize the user but if the app doesn't open then we can consider it to mean the app isn't installed.