Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

GH-250 Implement Launcher API (#356) #405

Merged
merged 4 commits into from
Jul 25, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Early morning typos
  • Loading branch information
jamesmontemagno committed Jul 25, 2018
commit 2b36405d25ba642ed264f495c79381433c5e9cf2
2 changes: 2 additions & 0 deletions DeviceTests/DeviceTests.Shared/Launcher_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ public Task Open(string uri)
[InlineData("sms:5550109999")]
public async Task CanOpen(string uri)
{
#if __IOS__
if (DeviceInfo.DeviceType == DeviceType.Virtual && (uri.Contains("tel:") || uri.Contains("mailto:")))
{
Assert.False(await Launcher.CanOpenAsync(uri));
return;
}
#endif

Assert.True(await Launcher.CanOpenAsync(uri));
}
Expand Down