You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Known issues and solutions for PWA Wrapper."
5
+
description: "This guide lists known issues for PWA Wrapper, and how to solve them."
6
6
---
7
7
8
8
## Introduction
@@ -13,28 +13,24 @@ This page describes known issues you may encounter when building or testing PWA
13
13
14
14
### App Cannot Connect to localhost on a Physical Device{#android-localhost}
15
15
16
-
**Symptom**: When you set the runtime URL to a localhost address (for example, `http://localhost:8080`) and install the app on a physical Android device, the app fails to load and shows the following error:
16
+
*Symptom — When you set the runtime URL to a localhost address (for example, `http://localhost:8080`) and install the app on a physical Android device, the app fails to load and shows the following error:
* Cause — Two things are required for a physical Android device to reach a localhost server on your machine:
31
26
32
-
1. In the PWA Wrapper builder, go to the **Permissions** step and enable the **INTERNET** permission.
27
+
* The app must have the `INTERNET` permission. Without it, the Android OS blocks all outbound network traffic.
28
+
* The device must have a port forwarding rule from its own localhost to your machine's localhost. Android devices do not forward ports automatically.
33
29
34
-
For general guidance on permissions, see [Build PWA Wrapper Apps](/refguide/mobile/distributing-mobile-apps/pwa-wrapper/build-pwa-wrapper-apps/).
30
+
* Solution — To solve this issue, do the following:
35
31
32
+
1. In the PWA Wrapper builder, go to the **Permissions** step and enable the **INTERNET** permission (for general guidance on permissions, see [Build PWA Wrapper Apps](/refguide/mobile/distributing-mobile-apps/pwa-wrapper/build-pwa-wrapper-apps/).
36
33
1. Connect the Android device to your machine via USB and make sure [USB debugging](https://developer.android.com/studio/debug/dev-options) is enabled on the device.
37
-
38
34
1. Run the following ADB command to forward port 8080 from the device to your machine:
39
35
40
36
```shell
@@ -43,7 +39,7 @@ net::ERR_CACHE_MISS
43
39
44
40
If your Mendix runtime uses a different port, replace `8080` with the correct port number on both sides.
45
41
46
-
1. Rebuild and reinstall the app with the localhost runtime URL.
42
+
1. Rebuild and reinstall the app with the **localhost** runtime URL.
47
43
48
44
The app can now reach the Mendix runtime running on your development machine.
0 commit comments