This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235827 - iOS device connection failure dialog does not explain how to fix the problem
Summary: iOS device connection failure dialog does not explain how to fix the problem
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Jan Becicka
URL:
Keywords: 7.4_HR_FIX, USABILITY
Depends on:
Blocks:
 
Reported: 2013-09-11 16:35 UTC by Petr Jiricka
Modified: 2013-09-17 13:22 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
iOS Device not connected (20.95 KB, image/png)
2013-09-12 10:47 UTC, Jan Becicka
Details
Error dialog - IDE cannot connect to web app (28.09 KB, image/png)
2013-09-12 10:49 UTC, Jan Becicka
Details
Improved dialog (36.32 KB, image/png)
2013-09-12 13:19 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-09-11 16:35:21 UTC
1. Create a HTML5 app (this was originally reported for Java Maven web app, but I suspect for HTML5 app it will also be reproducible)
2. Change the browser to iOS device (Mobile browser, not Cordova)
3. Run the app

=> In case the device is not set up correctly, the IDE apparently reports an error, but this error does not explain how to proceed/fix. It should inform the user about the necessary steps from http://wiki.netbeans.org/MobileBrowsers#iOS.
Comment 1 Jan Becicka 2013-09-12 10:44:54 UTC
IDE detects 2 situation. iPad is not connected and iPad is connected, but web application is not running (IDE cannot connect to it).
Comment 2 Jan Becicka 2013-09-12 10:47:37 UTC
Created attachment 139975 [details]
iOS Device not connected

Device not connected error dialog
Comment 3 Jan Becicka 2013-09-12 10:49:39 UTC
Created attachment 139976 [details]
Error dialog - IDE cannot connect to web app
Comment 4 Jan Becicka 2013-09-12 10:52:57 UTC
* Did you get another error than those above?

* If no - any ideas how to improve those dialogs? Should I create link to http://wiki.netbeans.org/MobileBrowsers in those dialogs?

* We are in high-res. 7.4 will get only P1 fixes. Change priority, if you want the fix in 7.4.

Thanks
Comment 5 Petr Jiricka 2013-09-12 11:11:17 UTC
This happened to John - I believe he says the device was connected, so he got the second dialog. The problem was that webkit debugging was not enabled in Mobile Safari preferences - and this information is not shown in the dialog. If there is still room for this in the dialog, then I would prefer to say it directly in the dialog, rather than display a link to the wiki.

Next, how about the requirement to be connected to the same WiFi network as the computer? That is also missing - both in the dialog and in the wiki page.  

> We are in high-res. 7.4 will get only P1 fixes. Change priority, 
> if you want the fix in 7.4.

My feeling is that the current behavior is not intuitive and many people will run into it, so I would still put this in 7.4. Cc'ing Lada and Marian for their opinion.
Comment 6 Vladimir Riha 2013-09-12 11:42:11 UTC
I agree with adding e.g. wiki link to the error dialog. This should be easy & safe and wiki page can be easily updated any time.

But I don't know if there will be another RC1 build or not and if this should be transplanted to RC1 or it can wait for FCS (and add some information to RC1 download page).
Comment 7 Jan Becicka 2013-09-12 13:19:25 UTC
Created attachment 139988 [details]
Improved dialog

Improved version of dialog. This is really safe fix - just change in bundle. Implementing URL link will be more complex.

Is this acceptable as fix?
Is the wording OK?
Comment 8 Petr Jiricka 2013-09-12 13:31:12 UTC
> Is this acceptable as fix?

Yes, I think that's fine, text-only version is ok.

> Is the wording OK?

Yes, I would just change a couple small things:
- Emphasize *WiFi* in the last bullet, and "desktop" is weird when most computers are laptops. How about "Your computer and iOS device are connected to the same WiFi network" - will that fit in?
- Can we use nicer bullet characters instead of *? How about U+2022 (see http://unicode-table.com/en/search/?q=bullet)?
Comment 9 Jan Becicka 2013-09-12 14:04:51 UTC
Changeset: 8f4fa5a2fd6d
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2013-09-12 15:57
Message:
Comment 10 Jan Becicka 2013-09-12 14:16:31 UTC
Fixed including Petr's improvements. If you want me to integrate it into release74, mark it as P1. Thanks
Comment 11 Petr Jiricka 2013-09-12 14:48:02 UTC
After discussion with Lada/Marian, yes we think this should go to 7.4.
Comment 12 Vladimir Riha 2013-09-13 12:45:24 UTC
Verified in web-main build, new msg is displayed
Comment 13 Svata Dedic 2013-09-13 14:20:35 UTC
Patch changeset 8f4fa5a2fd6d reviewed.
Comment 14 Jan Becicka 2013-09-13 14:28:46 UTC
http://hg.netbeans.org/releases/rev/c0f2ccd0034e
Comment 15 Quality Engineering 2013-09-14 05:14:37 UTC
Integrated into 'main-silver', will be available in build *201309140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8f4fa5a2fd6d
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #235827 - iOS device connection failure dialog does not explain how to fix the problem
Comment 16 Vladimir Riha 2013-09-17 13:22:21 UTC
Verified in RC1