Audit and package your PWA to distribute to app stores
In this step, we will audit the PWA to make sure it is installable and ready for publishing. We will also package the PWA to make it ready for distribution to app stores.
Audit with PWA Studio
You can do this directly in VSCode with the PWA Studio extension. Navigate to the extension pane and checkout each section - web manifest, service worker, and store ready checklist. It looks like this:
You can also perform the audit through other tools such as PWABuilder and Lighthouse in Edge dev tools.
Package your PWA
There are a couple of ways to package your PWAs. You can follow the steps below to package with PWA Studio extension:
- First, associate your PWA with a URL. Hit
ctrl-shift-P
in VS Code. Search forPWA Studio: Set App URL
. SelectYes
and provide the URL of the Azure Static Web App you deployed in step 3. - Hit
ctrl-shift-P
in VS Code again. Search forPWA Studio: Package your PWA
. Select the platform you would like to package your PWA for and follow the prompts. Congratulations, your PWA package will be generated!
You can also package your PWA via pwabuilder.com site. Here are the steps of packaging from PWABuilder docs.
Submit your app to the Microsoft Store
Let’s use Microsoft Store as an example and see how you can submit your app!
Register with Windows Dev Center
- Head over to Windows Dev Center and click Register. You will be taken to the store registration page. Click the SIGN UP button.
- You will now be redirected to a login page. Login with your Microsoft account (@hotmail, @outlook, etc.). If you don’t have a Microsoft account, you can create one from here.
- Once you are logged in, you should be redirected to Microsoft Partner Center site on Registration - Account Info page. Follow the setup steps to create your account. Select ‘Individual’ as account type if you plan to submit apps as yourself.
- After you finish your input on basic information, you will land on the Registration - Payment page. If you are registered as a student ambassador, you should have access to Visual Studio Enterprise subscription. This provides a promo code so you can save $19 in the registration process. To do this, head over to Visual Studio subscriptions page and log in with the account with the Visual Studio Enterprise subscription benefit. Browse the page to find Windows Developer Account benefit and click View Code button. Copy the code in the format of XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.
- Input the promo code copied from last step or pay with your preferred method on the Registration - Payment page of Microsoft Partner Center site.
- Now review your account information, accept the terms and conditions of the App Developer Agreement, and click Finish button on the Registration - Review page.
Reserve your app
- After you registered with Partner Center, head over to your dashboard.
- Navigate to
Apps and Games
. Depends on your visit history of the page, either clickCreate a new app
button or click+ New Product
button and selectApp
. - Provide the name of your app. Make sure this name is the same you listed in your manifest. When it comes time to upload your app bundles, it will check if the bundle matches the name of the registered app.
- Once the name is reserved, you will be able to access your package information via
Product Identity
tab. RecordPackage ID
,Publisher ID
, andPublisher Display Name
as these will be required either you are packaging through PWA Studio or PWABuilder site.
Submit to the Store
- Head back to your dashboard in Partner Center and select the listing you created from the list.
- Click
Start your submission
and select thePackages
section. Drag and drop the packages generated. ClickSave
. - Fill in the rest of your app submission sections to finish submitting to the store. Note that it will take up to 48 hours for the review process to complete.
Summary and next steps
Congratulations! You have finished this workshop from generating a PWA to submitting it to the Microsoft Store. You can continue to grow your PWA skills by exploring the resources such as 30 Days of PWA or Microsoft Edge docs on PWA.