Skip to content

Commit acd4891

Browse files
committed
Show configured gateway URL and actionable connection diagnostics
1 parent 98f5b01 commit acd4891

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/com/netormium/client/ui/BrowserCanvas.java‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,14 @@ public void run() {
683683
report.append("Platform: ").append(platform == null ? "Unknown" : platform).append("\n");
684684
report.append("Configuration: ").append(config == null ? "Unknown" : config).append("\n");
685685
report.append("Profiles: ").append(profile == null ? "Unknown" : profile).append("\n");
686+
report.append("Gateway URL: ").append(interactive.getBaseUrl().length() == 0 ?
687+
"NOT CONFIGURED" : interactive.getBaseUrl()).append("\n");
686688
report.append("Gateway: ").append(gateway).append("\n");
689+
if (interactive.getBaseUrl().length() == 0) {
690+
report.append("Action: Set Netormium-Gateway-URL in the JAD or Settings.\n");
691+
} else if (gateway.indexOf("OK") < 0) {
692+
report.append("Action: Check that the server is online, reachable from this phone, and allows HTTP.\n");
693+
}
687694
final String diagnosticText = report.toString();
688695
final boolean healthy = gateway.indexOf("OK") >= 0;
689696
Display.getDisplay(midlet).callSerially(new Runnable() {

0 commit comments

Comments
 (0)