Is there a way to see all installed service workers in browsers in iOS or Andorid and/or manually clear them? - mobile

In desktop I can go to chrome://serviceworker-internals/ to see all installed service workers in my chrome browsers and optionally unregister manually.
Is there any similar feature available in Chrome or Safari on iOS or Android devices?
Given that in Mobile devices, browser is always running in background and service workers can be active even if the pages are not open, it's important to see what SWs are potentially running on my device.

Related

iOS/Safari traffic in Jmeter - how to implement with WebDriver for Safari?

How is it possible to implement WebDriver for Safari in Jmeter (client-side)?
What workaround should be used instead of set up a path to WebDriver (because there is no safari driver path like for Chrome web driver)?
I'm confusing that there are no specific "jp#gc - Driver Config" for Safari in JMeter. - Will this absence affect tests or not and why?
By using Selenium you are not emulating traffic, you're launching a real browser on the real mobile device (or simulator) and automating this browser using Selenium API. This is mainly used for automated testing of websites functionality.
If you need to simulate a lot of mobile users concurrently accessing your website - just go for normal HTTP Request samplers. The only thing which indicates mobile Safari is its User-Agent header which can be added to requests using HTTP Header Manager
More information:
iOS User Agents
The latest user agents for Safari

Background task on iOS

I plan to create a business app that runs on iOS and communicates with a webservice. The app is meant to be an online app, but when there is no internet connection, the user should still be able to register a notification locally and the app should send the notification automatically (without further user intervention) as soon as there is an internet connection again. This should also work when the user closes the app while he has no internet connection.
Is it possible to do this on iOS? (I know it works on Android with a service)
Does this need a special permission ?
Thanks
Check out this developer guide section, specifically the part about local notifications in iOS and Android.
Notice that services can work in native code but the local notifications are portable.

Chrome desktop application for web based product

Chrome desktop application for web based product. Is this possible in chrome web apps
Product has following items
Angular JS --- Front-end framework
Rails --- JSon Communication
I have created the chrome desktop apps, which will directly open the site with icon. It's more feel like desktop application. In any OS it will run. The thing is working fine.
Problem:
It will always download the js and css files.
How i want to develop the chrome desktop apps
When launching the chrome desktop app, save all the assets locally.
Whenever chrome desktop app launched, it should refer the locally saved assets (I mean angular js files and css)
Before launching the chrome desktop app, it should request the server whether the assets are changed or not. If changed delete the locally saved files and save the latest one.
If assets are not changed use the old assets files. In this way, we can avoid the initial loading of all the files from the server.
Anybody did it previously or chrome provide any options for this?
Ideas are welcome!
Its totaly possible.
Read these docs: https://developer.chrome.com/apps/offline_apps
By myself i pack the css and javascript into the chrome app so you never have to download them on startup. But in your context its more like a webview app with caching functions.
You can use indexeddb or other local storage APIs to store assets in the client computer.
You can solve this on the web app side by employing ApplicationCache, which specifically fits what you describe.
Using the cache interface gives your application three advantages:
Offline browsing - users can navigate your full site when they're offline
Speed - resources come straight from disk, no trip to the network.
Resilience - if your site goes down for "maintenance" (as in, someone accidentally breaks everything), your users will get the offline experience
The Application Cache (or AppCache) allows a developer to specify which files the browser should cache and make available to offline users. Your app will load and work correctly, even if the user presses the refresh button while they're offline.
While it is primarily an offline-fallback technique, it allows you to cache resources locally just for speedup purposes. Actually having an offline fallback is a bonus in this case.
Actually building a Chrome app for this will probably not help - you cannot update local resources from your web app side, you'll need to update your app through WebStore channels only.

SignalR and Mobile Devices

Does SignalR work on mobile devices ?
I've only found this Does SignalR work on Mobile
However there's no real answer there - one of the replys refers to web-socket support however SignalR is supposed to revert to long polling if web-sockets aren't supported.
Has any one used this in a real cross platform application ?
We have built an application which runs on:
Win 7
Google Chrome
FireFox
Safari
IE6/7/8/9/10
Win 8
Google Chrome
FireFox
Safari
IE10
OSX
FireFox
Google Chrome
Safari
iOS5 (IPhone 4, IPad 2)
Safari
iOS6 (IPhone 4/5, IPad 2, new IPad)
Safari
Android Froyo - Android current
default browser
Windows Phone 7
default browser
SignalR works on all very well and will use the best transport for that device/OS/browser. The only problems I have seen are when using Opera browser.
If you have any issues with building a cross platform/browser app let me know as I have seen all sorts of crazy bugs!
While the support on the browsers is good, the support for the mobile platforms is not up to date. Microsoft is not focusing in keeping the android client api up to date (anti Android and iOS?). The documentation is very poor as well. With the help of a couple of non Microsoft resources, I could get it done with some effort.

Is there a way to spoof a desktop browser response to a css media query?

Maybe a browser plugin? Just looking for a dirty, quick way to test some mobile web development.
Here's 3 tools I found pretty helpful for testing media queries for mobile devices within my desktop browser:
Adobe Shadow: You'll have to download the app on your mobile device, and then link the device to Chrome and once you've done so you can inspect your webpages on chrome as they would appear on your mobile device.
Remote Debugging with Chrome for Android: Similar to Adobe Shadow, but I found this to be a lot more reliable when dealing with network requests on mobile devices - you will need a android device with Ice Cream Sandwich however.
Changing User Agent on Safari to debug different browsers straight from your desktop Safari: If you have Safari, it allows you to change the useragent string from the developer tools. Pretty useful if you want to spoof browsers. - Didn't really find this useful for media queries though.
Go into Safari settings, there is one that reads "Request Desktop Website." Check it, then browse to facebook.com Now you can message within browser. No app needed.

Resources