Exemplo n.º 1
0
        public Task OpenApp(string appScheme, string deepLinkingUrl, string browserUrl)
        {
            return(_mainThread.InvokeOnMainThreadAsync(async() =>
            {
                var supportsUri = await _launcher.CanOpenAsync(appScheme);

                if (supportsUri)
                {
                    await _launcher.OpenAsync(deepLinkingUrl);
                }
                else
                {
                    await OpenBrowser(browserUrl);
                }
            }));
        }
Exemplo n.º 2
0
 public static Task <bool> OpenAsync(this ILauncher launcher, string uri) =>
 launcher.OpenAsync(new Uri(uri));
 private async Task OpenPrivacyPolicyExecuted()
 {
     var uri = _appSettings.WasabeeBaseUrl + "/privacy";
     await _launcher.OpenAsync(new Uri(uri));
 }