The most recent version of Google Chrome browser will implement an interesting option that will provide a helping hand to software developers who want to turn their sites into Web applications complexes: a system of Push notifications, permanently active. This facility is not the only interesting novelty from Chrome 42 Beta, the browser will also benefit from an optimal way to add shortcuts to the desktop Android and better compatibility with some new web technologies.
The most surprising novelty is, without a doubt, the possibility of receiving some push messages in Google Chrome Even when the page that sends them is closed. This system uses the old Notification API, which has been used for almost two years to display graphically rich notifications, and the new Push API, which allows the creation of a permanent bond between the server and the client.
The system allows developers to insert, in the pages of sites, a special fragment of software code bearing the name of Service Worker, it will be rolled locally even when the page of origin is closed. Intermediated by the service Google Cloud Messaging, this connection will allow the transmission of Push notifications similar to those on mobile platforms, and these service Workers will be used for other activities, such as background synchronization or geofencing.
The second novelty is aimed at only the version for Android of the browser Chrome 42. The option to save a web shortness in Home Screen It will be completed by a message that will put users of this possibility in the theme, but it will be displayed only in the case of sites that meet the quality standards imposed by Google. Web developers need to pack their site in the form of a web application that respects Web App Manifest, to use HTTPS and render minimum offline functioning facilities. Next to these two news, Google Chrome 42 Beta offers a new Fetch API, which substitute the old method XMLHttpRequest For asynchronous update of a page without full refresh, and performs compatibility with Webaudio fire and classes JavaScript ES6.