With iPhone you can display different content for the same URL depending on whether the page is visited in normal Safari or via a home screen icon for that webpage. If the page is visited in Safari then you typically display the instructions for downloading the app. And if the page is visited via the home screen icon then you display the app.
I currently have all this setup for a client. When the URL is visited by a non-iOS device, then the app is always shown(i.e. instructions are never shown like with iOS if visited in Safari).
My question is, on Android is there any way I can detect if the page is launching via a home screen icon or not so that I can display instructions or the app like on iPhone? If not, what's the best alternative?
Related
I need to make an application in App inventor 2 that displays the website in the selected browser when clicked. I was able to do this for google chrome, but it doesn't work on firefox and edge. The firefox application starts up but does not enter the link. The Edge application does not turn on at all.
This is code for chrome browser:
This is edge:
This is Firefox (App starting but not search)
Unless you want your user to use a specific browser, I think a better approach would just be opening the link in the user's default browser. If they don't have a default browser, then Android should show the browser chooser.
I have a simple app that just accesses my website. From my FB Business Page it works fine clicking/tapping the "Use App" button displayed in the cover image using both desktop and mobile. It also works fine from the "Apps" section in the left sidebar on desktop. If I search FB, I can find both my page and my app in the search results. I can see the icon for my app in the search results. From desktop I can click the app icon returned from search, and it works fine. On mobile if I tap the app icon, the error "The page you requested was not found" is displayed.
How can I get my app to work on mobile too?
I would like to know if there is a way to override Chrome's "Request Desktop Site" option when the user visits a mobile site?
All that feature does is spoof the user agent of the browser to make it look like it's coming from a desktop.
Source: https://productforums.google.com/forum/#!topic/chrome/tz24aCo6F3I
If you're making a responsive site, it shouldn't affect your design since it would base the layout on the screen size. If you're attempting to use browser detection however, this would affect how your site is displayed to the user since it will see the user as a regular desktop browser. There's really not a way around the user-agent spoofing other than looking at the screen size and making assumptions about the browser type.
I'm building a website in WordPress and have bought the following theme: http://my.studiopress.com/themes/sixteen-nine/#demo-full .
This is currently my site
http://jiri.tourdog.nl/
When viewed on a mobile device, one is supposed to see a menu icon that one can click on to reveal a drop-down. When I visit the original theme-demo on my mobile device the icon shows like it's supposed to. However, when I check my own site I can't see the icon (although the part is press-able and shows the drop-down). On my laptop I can resize my screen and it'll also show.
So this leads me to believe this is not a WordPress issue nor is it an issue inside the theme (the css is exactly the same as the demo).
What could it be?
Summary: Icon doesn't show on my mobile device, does show on desktop, and am also able to see the original theme demo's icon on my mobile device.
I want to replicate the functionality that shows on map.google.com or m.grooveshark.com for example that when you access the web app on the default browser it asks you as a user if you want to set this webapp on your "desktop". ¿How do I do that on both platform?.
I'd suggest you try the Mobile Bookmark Bubble javascript library.
The Mobile Bookmark Bubble is a JavaScript library that adds a promo bubble to the bottom of your mobile web application, inviting users to bookmark the app to their device's home screen.
There are two new versions of implementation, one supports Mobile Safari only, while the other supports Mobile Safari, Android, Blackberry touch smartphones and Playbook.