From the course: JavaScript: Progressive Web Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Moving away from emulators

Moving away from emulators - JavaScript Tutorial

From the course: JavaScript: Progressive Web Applications

Start my 1-month free trial

Moving away from emulators

- [Instructor] You're well on your way to turning your web app into a PWA, but you've still got some work to do. Unfortunately, we've reached the limits of working with emulators, for now at least. First, one of the basic requirements of PWAs is that they must be served securely. That means using HTTPS as a transport protocol. For testing purposes, you can also use localhost, but deployed PWAs must use HTTPS. That's fine, except the Android emulator doesn't provide access to localhost. Technically, it is running on its own server, so localhost has a different meaning. That's why we used 10.0.2.2 as the IP address for our PWA. To make a long story short, you can't test PWAs using the Android emulator, unless you're running a web server on your dev machine that uses HTTPS. While that's possible, it's outside the scope of this course. The problem with iOS is different, but slightly worse in my opinion. As of iOS 11.3, PWAs still don't support adding to the home screen without the user…

Contents