Giter VIP home page Giter VIP logo

danielcauser / socialloginsamples Goto Github PK

View Code? Open in Web Editor NEW
39.0 4.0 27.0 608 KB

This repo contains different implementations for social login in Xamarin with the native SDKs for facebook and google.

Home Page: https://causerexception.com/category/authentication/

C# 100.00%
authentication xamarin xamarinforms googleauthenticaion facebookauth facebook-sdk google-services social-login

socialloginsamples's Introduction

socialloginsamples's People

Contributors

clifzero avatar danielcauser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

socialloginsamples's Issues

Error - Lcom/google/android/gms/common/api/zzf

Did you get this error? I'm facing this error on your example and on my project, after implement the Google auth. I already activated multi-dex, but the error continues.

java.lang.IllegalArgumentException: already added : Lcom/google/android/gms/common/api/zzf; GoogleNativeLogin.Droid

UNEXPECTED TOP-LEVEL EXCEPTION:
2> java.lang.RuntimeException: Translation has been interrupted
2> at com.android.dx.command.dexer.Main.processAllFiles(Main.java:615)
2> at com.android.dx.command.dexer.Main.runMonoDex(Main.java:313)
2> at com.android.dx.command.dexer.Main.runDx(Main.java:291)
2> at com.android.dx.command.dexer.Main.main(Main.java:247)
2> at com.android.dx.command.Main.main(Main.java:94)
2> Caused by: java.lang.InterruptedException: Too many errors
2> at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)

Not asking for continue with this user

I downloaded this example and try it. My problem is that it does not ask to continue with this account it automatically get the logged in account on the FB app and if I logged out from the FB app it asks to choose a user.(Is this the normal behavior?)

Got Javac error

Severity Code Description Project File Line Suppression State
Error The "Javac" task failed unexpectedly.
System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.LongPathHelper.Normalize(String path, UInt32 maxPathLength, Boolean checkInvalidCharacters, Boolean expandShortPaths)
at System.IO.Path.NewNormalizePath(String path, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
at System.IO.FileInfo..ctor(String fileName)
at Xamarin.Android.Tasks.ZipArchiveEx.AddFiles(String folder, String folderInArchive)
at Xamarin.Android.Tasks.ZipArchiveEx.AddDirectory(String folder, String folderInArchive)
at Xamarin.Android.Tasks.Javac.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() GoogleNativeLogin.Droid

No Resource found error

After Loading Project and restore nuget packages it still showing below error

Severity Code Description Project File Line Suppression State
Error Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'. GoogleNativeLogin.Droid C:\Users\Admin\Documents\Samples\login\google\GoogleNativeLogin\GoogleNativeLogin.Droid\Resources\values\styles.xml 2

screenshot 57

Login Error

I'm Gettin developer error in OnActivity Result

This is i'm getting

data: {Intent { (has extras) }}
Extras: {Bundle[{googleSignInStatus=Status{statusCode=DEVELOPER_ERROR, resolution=null}}]}

android Login issue

In my app login with IOS is working fine .But for android it is giving an unknown error has occured.
can you please help me .
and i want to know in android where it is exactly using the client id.

iOS _viewController NullReferenceException

I am getting null NullReferenceException.

The exception is thrown when the method PresentViewController is called on iOS Google manager.
When the method is called the field _viewController is null

If you can take a look it would be great.

Thank you in advance, and a great tutorial.

missing information in the article

Hi,

thanks for your nice documentation, i would like to say that a step is missing. when you debug, you need to sign your project with cert used to create SHA1 code, otherwise you get status as "cancelled" as some of them complained in the comments.
capture

Beside that it would be nice if you could extend your article how to get token which can be used for services like firebase etc.

thank you for your help.

Emil

sample project doesn't work

I got "An error occured!" message after selecting my google account. I tried to use my google settings, but the json file downloaded from google developer console is not google-service.json. Please advice how to make Xamarin.GooglePlayServices.Auth work in Xamarin.Form project.
Thank you very much.
Henry

_googleManager.Login(OnLoginComplete); error

I am getting this error when I click on the login button:
clipboard04154

Unhandled Exception:

System.NullReferenceException: Object reference not set to an instance of an object.

Thank you for answers !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.