Пример #1
0
        // Support for iOS 8 or before
        public override bool OpenUrl(UIApplication application, NSUrl url, string sourceApplication, NSObject annotation)
        {
            // Handle App Invite requests
            var invite = Invites.HandleUrl(url, sourceApplication, annotation);

            if (invite != null)
            {
                var matchType = invite.MatchType == ReceivedInviteMatchType.Weak ? "Weak" : "Strong";
                var message   = $"Deep link from {sourceApplication}\nInvite ID: {invite.InviteId}\nApp Url: {invite.DeepLink}\nMatch Type: {matchType}";
                ShowMessage("Depp-Link Data", message, Window.RootViewController);

                return(true);
            }

            // Handle Sign In
            return(SignIn.SharedInstance.HandleUrl(url, sourceApplication ?? "", annotation));
        }