Can i use live reload in prodution?

Can I use the Capacitor live reload feature in production to redirect to one site that runs everywhere?

  "server": {
    "url": "https://example.com",
    "allowNavigation": [
      "https://example.com"
    ]
  },

Thatā€™s not really what ā€œlive reloadā€ means. Thatā€™s just loading the resources from an external server.

It might be technically possible, but itā€™s usually in violation of the terms & conditions you agree to when you submit your app to the app stores, causing it to be rejected. But you should carefully read the terms for yourself because I am not a lawyer.

1 Like

technically you can, you can even comment the toast that shows the url to make it seamless.

however, your app will be rejected for sure on the App Store.

Thanks guys ā€¦ Iā€™ve abandoned the idea in favour of injecting the URL with javascript, but will write here for reference sake. Although it was loadingā€¦ It was losing the Capacitor instance. ā€¦ and if it was imported again on the site that was ā€˜live loadingā€™, it would come up as a WebCapacitor instance, not a native one. And to add to the confusion, the instance was available on the first run (after installing the app, but not subsequent runs).

I outlined the issue here Capacitor global instance is not available from live loaded PWA side, in Android only