Convert PWA app to Native apps - Ionic, Capacitor and Angular #3373
-
Hi, I have developed Ionic/Capacitor/Angular PWA app using this library Note: Here I need both types of apps. i.e. PWA and Native apps Update I have created 2 repos here. i.e. 2nd repo: removed Angular PWA library and all things related to PWA set up. But I do not think that is a good practice here since I need to update both projects with new enhancements. So what is the best architecture here to follow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Sampath - you can use the same codebase to build the native apps. Here's an example demo app. The main portions of a PWA are the app manifest and the service worker. App manifest is a configuration file - so that is ignored on mobile. Service Workers do not run in web views (which is how the app is displayed natively using Capacitor or Cordova) - so no effect should be seen. |
Beta Was this translation helpful? Give feedback.
Hi Sampath - you can use the same codebase to build the native apps. Here's an example demo app.
The main portions of a PWA are the app manifest and the service worker. App manifest is a configuration file - so that is ignored on mobile. Service Workers do not run in web views (which is how the app is displayed natively using Capacitor or Cordova) - so no effect should be seen.