I need to remove the notification you receive in mobile Safari in Aframe that you receive when you first open the site, the one that says "Setyour browser to request the mobile version of this site and reload to enjoy immersive mode."
The reason is that the project will be deployed on company issued devices where settings are managed by IT or the users may be too confused to go through the experience.
You can disable via the device-permission-ui component. Notice that magic window and vr mode won’t be available if the site is requested using desktop mode.
Related
How does iOS Safari determine when to show the location services dialog? It seems if the user grants permission twice for a given domain, the choice is cached (just on that device). For how long? Are two denials also cached?
Has the algorithm changed between versions of iOS? (On a version of iOS before 10.1.1, I always gave google.com permission, but I kept getting prompted every time I visited.)
Is the algorithm different when the mobile app supports "save to home screen?" (And is started from the home screen)
Background info:
When a web app requests the user's location, iOS first prompts the user for permission. An example of this is on google.com when "Use precise location" at the bottom is tapped.
This question is similar, but there are no answers, yet: How does mobile safari determine when to prompt user to share location?
I'm building a Chrome plugin that tracks users' browsing history, but I'd like to ignore any mobile browsing, keeping only the logs that occurred on a signed-in desktop browser.
I'm also confused about whether the extension code itself runs on signed-in mobile browsers – my event script (using chrome.alarms) occasionally sends browsing logs to a server, and I can see logs being sent even when my laptop is closed, but they usually correspond to when I'm using Chrome on my iPhone.
I can't find any information on either of these issues Chrome's developer portal.
I'm also confused about whether the extension code itself runs on signed-in mobile browsers
Well, for one, mobile Chrome does not support extensions; as such, there is no such risks.
However, an extension published on Chrome Web Store will, by default, replicate itself upon installation to other Chrome profiles that are signed into the same account as part of Chrome Sync. The only way to prevent it is to disable extension sync for the profile, which also makes chrome.storage.sync to stop replicating.
So your "unexpected" logs may come from another desktop Chrome that's signed into the same account - assuming the extension is actually published in CWS.
I wonder if there is any chance, either javascript or some code, to know if the user is visiting the page on the mobile device directly from the navigator or from a shortcut from the home screen? I need to know this so show a message to invite the user to create a shortcut and then use the web page in the app like mode.
This page notes how you can tell for iOS; you have to set a meta tag to turn on standalone mode and then check window.navigator.standalone.
However, as far as I can tell, there is no equivalent for Android's built-in browser or for Chrome on Android. See the documentation for mobile Chrome: "How can I detect if the app is running as an installed app?
You can’t, directly." And also: "Do not prompt the user to add your app to the homescreen. There is no way to detect if the app is running installed or not."
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.
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.