Authentication Using mobile Service Client

narendragnarendrag NPMember

I have a xamarin forms where i have a login button for facebook and login button for google , what i want to do is i want to bind button click event to start new activity , How can i do that using xamarin cross platform , i have used Dependency service from xamarin cross platform
Here is my code

[assembly: Xamarin.Forms.Dependency(typeof(LoginActivity))]
// ReSharper disable once CheckNamespace

namespace UsingCPuppyApp.Droid
{
//[Activity(Label = "Login", MainLauncher = false, NoHistory = true)]
public class LoginActivity :Activity, IAuthService
{
public void Login()
{

        StartActivity(typeof(FacebookLoginActivity));


    }
}

}
I always get error when login trigger

Sign In or Register to comment.