Problem:
We would like to open the mobile devices own share dialog when the user clicks on a button in our website, so that they have their local apps available.
Now: Is it even possible to get to the devices share dialog through the web browser on a phone?
We use only HTML5, CSS3 and Javascript for the websites, so no Android SDK or iPhone equivalent.
Apparently as José said it is not possible to access the devices share dialog directly through a web browser. Further investigations into other possibilities will be done on our side.
Related
First of all there are few posts already but with satisfactory answers so i am posting the same issue again hoping for the solution
Force links to open outside facebook's inapp browser
Open website link outside of Facebook app
The problem is when the user clicks on a website link posted on facebook clicking on the link will open the site in facebook in app browser. I want to detect that the site was opened in facebook's in app browser and then if so force the site or page to open in external browser. I want this ability because there are many things that dont seem to work in facebook's in app browser. I appreciate any input! Thanks!
This is not something you can (reliably) detect.
Even if you could, I'm pretty sure there's no way to force the site to open in the device's browser, instead of the in-app browser
Here's an answer that worked for me, using Firebase Dynamic Links. It works for Android but not iOS.
I needed this solution so I could upload documents in the messenger in-app browser but couldn't on Android devices.
https://stackoverflow.com/a/56143217/3664100
I have seen several of these question from 1-2 years ago about Android pre-4.0. I want to ask this again for Android 4+.
I have a galaxy s3 running 4.3 and when I click on a pdf link it downloads the document rather than opening it in the browser.
I am building a website and it will have links to pdf documents. The desired behavior when one of my users clicks on the pdf link on their Android device is for the pdf document to just open like it would on a desktop browser.
Is there anything I can do to achieve this functionality, or does Android still not support this?
I cannot control the device that a user is using, so I'm looking for a solution that would achieve this functionality in as many cases as possible.
The stock browser does not support native viewing of PDFs. You can however redirect the link to google docs and view internally that way. To do this, launch your implicit view intent, as I suspect you are already doing, but prepend the URI with "https://docs.google.com/gview?url=" and Google will take care of the rest
Alternately, there are a few libraries that you will see linked around SO, but from what I saw while researching, most are proprietary and cost and even then they might not work 100%. Google docs is free and works as often as Google does, which given that this is their platform you have to imagine they make certain their service works close to 100% of the time.
it downloads the document rather than opening it in the browser.
"it" is a Web browser. There are many Web browsers for Android. A Web browser can do whatever it wants when the user clicks on a link to a PDF file.
The desired behavior when one of my users clicks on the pdf link on their Android device is for the pdf document to just open like it would on a desktop browser.
That is not the behavior of all desktop browsers, particularly depending upon user configuration (e.g., browser extensions). A desktop Web browser, like a mobile Web browser, is welcome to do whatever it wants when the user clicks on a link to a PDF file.
does Android still not support this?
Android is an OS. Android neither supports nor does not support this. Web browser applications will or will not support what you want.
I cannot control the device that a user is using, so I'm looking for a solution that would achieve this functionality in as many cases as possible.
You are welcome to test a variety of Android Web browsers, see if there are any that behave the way you like, and suggest to your users that you would prefer that they use those browsers. Your users, in turn, are welcome to honor or ignore your request.
Or, as Chris M points out, you are welcome to not show a PDF at all, but rather redirect the user to some URL that processes the PDF and renders it in some other way.
In my project as per client we need to access and upload picture from photo gallery to site. It is for iOS, Android and blackberry. I know we can access it for android using opera browser but my question is can we access it for all mobile device and from any device browser.
Yes, in fact iOS even has multi-upload functionality built in as well. I'm not sure about blackberry, but I'm almost positive that any mobile device has this feature. The best thing you can do is just more research online and testing on them.
HTML(you don't need javascript to do it)
<input type="file"/>
I have a web application (HTML5, CSS3, JQuery) that displays notifications using both methods: a growl-like jquery plugin (javascript+html), or using the Chrome notification API (only if you are using Chrome).
What I want is to create a javascript growl-like notification that is shown over all the other windows in the screen, even if you have another application focused in fullscreen mode.
I think that this is not possible with javascript because probably it is restricted to the browser window, but maybe with the Chrome notification API it could be done (this notifications popup over other applications, if they are not in fullscreen mode).
Recently Chrome updated its browser so that the notifications are not shown if you have an application in fullscreen. In general it is a good update but if you want to show the notification even if you are in a fullscreen app, how do you do that? Can the final user of the web application change the behaviour of this notifications and make them appear always?
PD: if there is another browser technology that allows this kind of notifications, please tell me.
As far as I am aware this is not possible, certainly not as any sort of cross-browser solution.
I have YouTube videos in my site opening in a modal window (ColorBox). When I try it on my iPhone, the window launches but the video doesn't play.
How can I prevent the modal window script from being served to smartphones, so that videos launch normally on those devices?
Thanks!
You could sniff the user agent with some javascript or even server side code, but make sure to give your users a way to switch manually between the two.
Nothing sucks more than getting the phone version on a computer because you're using an unknown browser like konqueror or getting the computer version on a phone because you're using a windows 7 phone.