Skip to content

Commit 784764e

Browse files
committed
format
1 parent f7f3131 commit 784764e

1 file changed

Lines changed: 13 additions & 17 deletions

File tree

content/en/docs/refguide/mobile/distributing-mobile-apps/pwa-wrapper/pwa-wrapper-troubleshooting.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Troubleshoot PWA Wrapper"
33
url: /refguide/mobile/pwa-wrapper/pwa-wrapper-troubleshooting/
44
weight: 60
5-
description: "Known issues and solutions for PWA Wrapper."
5+
description: "This guide lists known issues for PWA Wrapper, and how to solve them."
66
---
77

88
## Introduction
@@ -13,28 +13,24 @@ This page describes known issues you may encounter when building or testing PWA
1313

1414
### App Cannot Connect to localhost on a Physical Device{#android-localhost}
1515

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:
1717

18-
```
19-
Page Load Error
20-
net::ERR_CACHE_MISS
21-
```
22-
23-
{{< figure src="/attachments/refguide/mobile/pwa-wrapper/localhost-cache-miss-error.png" alt="Page Load Error showing net::ERR_CACHE_MISS on Android" max-width="400px" >}}
24-
25-
**Cause**: Two things are required for a physical Android device to reach a localhost server on your machine:
18+
```
19+
Page Load Error
20+
net::ERR_CACHE_MISS
21+
```
2622
27-
1. The app must have the `INTERNET` permission. Without it, the Android OS blocks all outbound network traffic.
28-
2. The device must have a port forwarding rule from its own localhost to your machine's localhost. Android devices do not forward ports automatically.
23+
{{< figure src="/attachments/refguide/mobile/pwa-wrapper/localhost-cache-miss-error.png" alt="Page Load Error showing net::ERR_CACHE_MISS on Android" max-width="400px" >}}
2924
30-
**Solution**:
25+
* Cause — Two things are required for a physical Android device to reach a localhost server on your machine:
3126
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.
3329
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:
3531
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/).
3633
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-
3834
1. Run the following ADB command to forward port 8080 from the device to your machine:
3935
4036
```shell
@@ -43,7 +39,7 @@ net::ERR_CACHE_MISS
4339
4440
If your Mendix runtime uses a different port, replace `8080` with the correct port number on both sides.
4541
46-
1. Rebuild and reinstall the app with the localhost runtime URL.
42+
1. Rebuild and reinstall the app with the **localhost** runtime URL.
4743
4844
The app can now reach the Mendix runtime running on your development machine.
4945

0 commit comments

Comments
 (0)