Is the chrome.extension API available on mobile Chrome? - javascript

I'm writing a webpage that's supposed to encourage my users to install my Chrome extension if they haven't already. I have access to the chrome object when the JavaScript runs in Chrome, but not in other browsers like Safari or Internet Explorer. That's all well and good, but I was wondering whether the chrome object exists in mobile Chrome (Chrome for Android or iOS) and whether there is a separate API for those browsers. Thanks!

no, extensions or the .extension apis are currently not supported on mobile chrome.

Related

Simulate a IOS environment for test website in safari

I'm developing an simples website using html, css/bootstrap and JS. I received feedback by Iphone user that some features not working in IOS mobile. Some Images not loading and counter-up not working too. In windows and android is working fine (chrome and Firefox). The question is, how I create a environment for simulate a IOS mobile for check how safari browser load my site? I tried install safari in windows but it not show equals execution in IOS. I think that browsershots not is a good ideia, because it works only with static content, and in the moment return 500 internal server error.
Microsoft BrowserStack provides a full test environment, however beyond the complimentary trial period it is not free. For errors related to pageload or reference, I would suggest you use device emulation and network throttling in a browser: Safari, Firefox, Chrome.
Some browsers are more forgiving of errors, so you may even have a typo. Is your trustworthy friend using an outdated browser while you require modern feature support? The scope of the problem seems undeserving of a bill for membership or tech support.

Is Firebase Cloud Messaging supposed to work on mobile devices?

I'm trying to set up background and foreround push notifications for a website using Firebase Cloud Messaging, but it doesn't appear to be working on mobile browsers.
I've tested it and it works fine on Firefox and Chromium on macOS, but it doesn't on Firefox and Chrome on Android, and Safari on iOS.
I tried debugging with remote devtools on Chrome and the console says the browser doesn't have the APIs necessary for Firebase Cloud Messaging. I'd understand Firefox and Safari but Chrome is developed by Google so I assumed it'd work with Firebase, so I was wondering if mobile browsers really are unsupported or if I was doing something wrong?
Thanks!
According to the documentation:
The FCM JavaScript API lets you receive notification messages in web
apps running in browsers that support the Push API. This includes the
browser versions listed in this support matrix.
Click the support matrix link to find out which browsers support the Push API.

voice recording from IPhone Chrome using HTML5 and javascript

I am working on a english learning website. One part of our service are voice recording and grading. We use getUserMedia API to get users voice, and it works fine on PC browsers and iOS safari, however, it couldn't work on iOS Chrome.
In caniuse compatible table, there is no iOS chrome item so I'm not sure is it possible to use this API on iOS chrome. Is there any other methods or APIs to get users voice on iOS chrome?
Unfortunately, you're probably out of luck. iOS keeps very strict limitations on what alternative browsers can do. This means that other iOS browsers like Chrome, Opera, etc. don't have access to many of the native features that Safari has.

jStorage not working in certain IOS safari browsers

I am trying to use jStorage on my site built on jQuery Mobile. It works fine on Chrome, Firefox, Android, some versions of Mobile Safari, and on IE 10 mobile on Windows Phone 8. It gives me an 'undefined' error when I try to set any value. For example, $.jStorage.set("FBID", response.authResponse.userID);
I have this issue on iPhone 5 (Safari 6.1) and iPhone 4S (Safari 6.0)
Enabling local storage on Safari does not help.
Any ideas or suggestions you could come up with?
Found the issue.... localStorage does not work on iOS when private browsing is switched on. When using jStorage, this causes error. Use the following if condition to ensure it does not show an error when browsing privately..
if($.jStorage.storageAvailable())
$.jStorage.get(key);
If you do a web search for "iOS 5 localstorage bug" you see that it's been broken in Mobile Safari for a while. jStorage utilizes HTML5 localstorage, thus why it does not work.

Desktop notification APIs for browsers other than Chrome?

Do other major browsers (Firefox, IE, Safari, Opera) have a built-in desktop notifications API like the one Chrome has?
If so, please leave a link to their documentation.
The notifications that Chrome has built in is based on the W3C Web Notifications specification.
As of today, the only browser that support THIS SPEC is Chrome. You can find a listing of browser support at CanIUse.com
You can enable them in Firefox with this extension
https://addons.mozilla.org/en-US/firefox/addon/tab-notifier/
Don't know about opera or safari but in firefox you can find this : https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/notifications.html
You could check in here:
https://github.com/ttsvetko/HTML5-Desktop-Notifications
Demo page
http://ttsvetko.github.io/HTML5-Desktop-Notifications/
I know this is a 3 years old question. But here's my link to Opera Browser's desktop notification. I use Opera.
http://blogs.opera.com/desktop/2014/08/opera-developer-25-supports-web-notifications/

Categories