Пример #1
0
        async void OnGoogleButtonClicked(object sender, EventArgs e)
        {
            WebViewUrl web = new WebViewUrl();
            Dictionary <string, string> webview = new Dictionary <string, string>();

            webview.Add("appname", siteName);
            webview.Add("apikey", apikey);
            webview.Add("provider", "google");
            await((NavigationPage)Application.Current.MainPage).PushAsync(new LRWebview(web.getWebUrl(webview)));
        }
Пример #2
0
        partial void Google_TouchUpInside(UIButton sender)
        {
            GUIDStorage guid = new GUIDStorage();
            Guid        obj  = Guid.NewGuid();

            guid.GUIDTOKEN = Convert.ToString(obj);

            var appDelegate = (AppDelegate)UIApplication.SharedApplication.Delegate;
            // appDelegate.FinishedLaunching();
            Dictionary <string, string> webview = new Dictionary <string, string>();

            webview.Add("appname", this.appName);
            webview.Add("callbackguid", guid.GUIDTOKEN);
            webview.Add("apikey", this.apiKey);
            webview.Add("provider", "google");
            WebViewUrl web  = new WebViewUrl();
            var        sfvc = new SFSafariViewController(new NSUrl(web.getWebUrlWithNoCallBack(webview)), true);

            PresentViewController(sfvc, true, null);
            GetEmailPromptAutoLoginPing(this.apiKey, guid.GUIDTOKEN);
        }
Пример #3
0
        partial void Facebook_TouchUpInside(UIButton sender)
        {
            // GetEmailPromptAutoLoginPing(apikey, guid.GUIDTOKEN);
            GUIDStorage guid = new GUIDStorage();
            Guid        obj  = Guid.NewGuid();

            guid.GUIDTOKEN = Convert.ToString(obj);

            var appDelegate = (AppDelegate)UIApplication.SharedApplication.Delegate;
            // appDelegate.FinishedLaunching();
            Dictionary <string, string> webview = new Dictionary <string, string>();

            webview.Add("appname", this.appName);
            webview.Add("callbackguid", guid.GUIDTOKEN);
            webview.Add("apikey", this.apiKey);
            webview.Add("provider", "facebook");
            WebViewUrl web  = new WebViewUrl();
            var        sfvc = new SFSafariViewController(new NSUrl(web.getWebUrlWithNoCallBack(webview)), true);

            PresentViewController(sfvc, true, null);
            // for this api call for no callback function if you need to social login the you need to add a nocallback feture form loginradius backend.
            GetEmailPromptAutoLoginPing(this.apiKey, guid.GUIDTOKEN);
        }