I recently gave a talk at the Edge Summit around what I spend a lot of my hours working on - Microsoft’s PWA plans and how it integrates nicely with the larger goal of re-using web code for both web and native solutions. In this post, I just want to share some quick notes that you can all refer to for updates.
If You Missed the Recording
While I think the entire talk is useful for you to watch (especially when Chandra from Microsoft Teams explains how they solve the web/native developer productivity problem), one of the big updates I provided in this talk is our timeframe for PWAs in Windows 10. This is the high-level answer:
The following sections will go into a little bit more detail:
Edge Browser Behavior
Our upcoming release next month (Fall Creator’s Update) will have Service Worker support hidden behind flags in Edge:
For apps, you can test Service Worker functionality by adding the ServiceWorker=“true” value to your appxmanifest.xml file that is a part of your project:
<uap:Rule Type="include" Match="https://contoso.com/" ServiceWorker="true" WindowsRuntimeAccess="all"/>
This will allow you to test locally on your machine, but do not submit this app to the Store. Until Service Worker functionality is fully supported, we will not allow app store submissions!
PWAs in the Store…Automatically
One of the big initiatives we are taking is getting your PWAs into the Windows Store with very little involvement from you. The way we are doing that is by using Bing to crawl your manifest.json and relying on the metadata there to create the app that lives in the Store:
We are piloting the entire workflow with a handful of apps (and their developers) right now, and we will start ramping this up as we get closer to full PWA support next year. The goal is to get quality apps into the Store. Coming up with the right algorithms to detect quality is something we are constantly tweaking, but we will detail our quality criteria shortly. You can see where we are leaning towards by referring to Aaron Gustafson’s PWA talk at Build earlier this year.
Looking Beyond October
Based on overall quality, we will start enabling Service Workers by default in Edge in our Insider Builds. The goal is to ship Service Worker support fully with our next major release next year. While I don’t have exact dates, it should be sometime around the first half of 2018 based on how we’ve shipped in the past.
Once our support for Service Worker is fully turned on, we will start allowing PWAs to be submitted to the Store as well. Until then, just because Store submission isn’t allowed today does not mean you can’t test the proposed app behavior today…like, right now! Here is how:
The Start your app section will get you up-and-running with building a HWA really quickly. Just make sure to add the
ServiceWorker=“true”value to the appxmanifest to test them out now.
Hopefully this clarifies what I mentioned in my talk in slightly more detail. Let me know if there any questions on what you’ve seen. This is a fun and constantly evolving space, so keep in mind that some things you’ve seen here may change based on your feedback and so on