dotnetco.de

Native Facebook Login for Xamarin Forms Android projects

Previously I’ve shown how to add native Facebook Login in Xamarin Forms iOS App, so now it’s time to do the same also for the Android project in your Xamarin Forms Application.

James Montemagno posted article “Native Android Facebook Authentication with Azure App Service” just 3 weeks ago but as he uses Azure App Services I’ll now update my existing Native Facebook Login for Xamarin Forms iOS projects also for Android. The steps are quite the same as for iOS of course.

This is all based on the source code created within how to get Facebook Friendlist and of course we could reuse much of this code. So current article not only contains details about the native Facebook Login in your Xamarin Forms Android project, but also how to retrieve the friendlist then.

Continue reading…

How to get facebook friendlist in Xamarin Forms iOS using native facebook login

In previous post I’ve shown how to login to Facebook using Facebooks native SDK using client side authentication. So now we know the user, what else can we get? Here is a guide how to get the friendlist of the logged-in user. Why the friendlist? Because next to public profile and email, friendlist is one of the 3 attributes which are supplied by facebook without reviewing your app. Of course you could easily use current article to get any other attribute you want.

Continue reading…

Native Facebook Login in Xamarin Forms iOS App

Many apps need some kind of user authentication. Instead of having users to register on your site, it’s more convenient to use existing Logins. Many social networks like Facebook, Twitter and Google offer to use their login data to authenticate users in your application.

You have 2 different options of authentication: Server side or client side. Server side implementation is quite easy. You could e.g. use Azure to handle all the authentication. Xamarin University has course AZR 120 about “Authentication with Azure” to guide you step by step. There is also information how to do Facebook Login without Azure, e.g. by HoussemDellai on github. Continue reading…

200.000 Downloads!!

Wenn man nicht regelmäßig in die Statistiken schaut verpasst man so einiges…. Erst heute ist mir aufgefallen, daß unsere App “Fussball im FreeTV” in den Stores von iOS, Android und Windows inzwischen auf über 200.000 Downloads kommt!

Im Einzelnen teilen sich die Downloads (Stand 23. August 2017) wie folgt auf:

  • iOS: 15.912
  • Android: 135.526
  • Windows: 50.309

Macht insgesamt 201.747 Downloads!!

Mindestens genau so stolz sind wir über die inzwischen knapp 3.000 vorhandenen Bewertungen in den einzelnen Stores:

  • iOS: 4,0 von 5 Sternen
  • Android: 4,3 von 5 Sternen
  • Windows: 4,5 von 5 Sternen

 

Wer mehr über die App erfahren will findet hier noch ein paar zusätzliche Infos.

iOS

 

Android

 

Windows

Error MSB6006: “sgen.exe” exited with code 1. (MSB6006)

In one of my Xamarin Forms (using Visual Studio for Mac) project I’ve found the following error message when I try to deploy it on my iPhone for testing:

Error MSB6006: “sgen.exe” exited with code 1. (MSB6006)

Even though the Build output contains some more data, I did not find any clue how to fix it:

Unhandled Exception:
System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes ()
at Driver.Run (System.String[] args)
at Driver.Main (System.String[] args)
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes ()
at Driver.Run (System.String[] args)
at Driver.Main (System.String[] args)
/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(3366,5): error MSB6006: “sgen.exe” exited with code 1.
Done building target “GenerateSerializationAssemblies” in project “MyApp.iOS.csproj” — FAILED.
Target _CleanRecordFileWrites:
MakeDir Task
Directories:
obj/iPhone/Release/

Done building project “MyApp.iOS.csproj” — FAILED.

Build FAILED.

Postings in Xamarin Forum recommend to check the versions, but that did not help for me.

Continue reading…