Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

iOS Simulator Crash when use IsReachable when try connect an IP does not exist on Network #159

Closed
SyaoranChang opened this issue Jul 4, 2018 · 1 comment

Comments

@SyaoranChang
Copy link

Bug Information

Version Number of Plugin: 4.0.0.190-beta
Device Tested On:
Simulator Tested On: iPhone X - 11.3
Version of VS: 15.6.7
Version of Xamarin: 4.9.0.753
Versions of other things you are using:

Steps to reproduce the Behavior

IsReachable Crash when try connect an IP does not exist on Network

Test connect to Local Area Network.
The ip does not exist on Network.
IP:192.168.1.100
Port:80

var isReachable = await CrossConnectivity.Current.IsReachable(192.168.1.100, 80);
Crash after run this code.

Expected Behavior

Actual Behavior

Code snippet

Screenshots

@SyaoranChang
Copy link
Author

Version Number of Plugin: 4.0.0.190-beta

I change to use IsRemoteReachable
Task IsRemoteReachable(Uri uri, TimeSpan timeout);

seems result is OK
iOS Simulator
iPhone X - 11.3 IsRemoteReachable OK

Genymotion android simulator
Samsung Galaxy S8 7.0.0 IsRemoteReachable OK

Real Devices
OPPO R15 - 8.1.0 IsRemoteReachable OK

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants