Skip to content

Conversation

infosia
Copy link
Contributor

@infosia infosia commented Aug 9, 2016

TIMOB-23748

Titanium CLI is unable to connect to Windows Phone 8.1 device after updating to Microsoft Windows 10 SDK 10.0.14393. There's no problem building against Windows 10 Mobile device though.

vs

As far as I can see, it turns out that Microsoft.SmartDevice.Connectivity.IDevice.GetEndPoints throws Exception when you connect to Windows Phone 8.1 device. I found that it actually is able to connect to WP 8.1 device, and those information (that IDevice.GetEndPoints collects) are not actually used from Titanium CLI, so it's safe to return success=true.

// From some point of Windows 10 SDK, IDevice.GetEndPoints throws Exception for Windows Phone 8.1 device.
// Returning ok for now because we can still connect to the device.
//
if (command == "connect" && connectableDevice.Version.Major == 8 && !connectableDevice.IsEmulator()) {
Copy link
Contributor Author

@infosia infosia Aug 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Interestingly I've seen ConnectableDevice.Version returns 8.1 or 6.3 with the updated SDK. This may not be quite expected before as we have been seeing it returns 6.3 for Windows Phone 8.1 device.

@garymathews
Copy link

garymathews commented Aug 9, 2016

@infosia Since this is the same problem for Windows 10 devices wptool.cs#L179 we could remove the Windows 10 if statement and let it fall into the catch OR amend the if for Windows 8.1 devices, saving time by not waiting on connectableDevice.Connect(); ?

@infosia
Copy link
Contributor Author

infosia commented Aug 9, 2016

@garymathews Yeah makes sense. I would remove the Windows 10 if statement and let it fall into the catch. I'll push it soon.

@garymathews
Copy link

CR: PASS
FR: PASS

@garymathews garymathews merged commit 715aae5 into appcelerator-archive:master Aug 9, 2016
@infosia infosia deleted the TIMOB-23748 branch November 10, 2016 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants