Xamarin Android Dynamic App Bundle .aab File Archiving

Google change the route apk files to aab files. So I see that now you can’t upload and deploy apk file using Xamarin. Down below I will share how to create aab file using Xamarin Mac sign the aab file and upload that to store. Today Xamarin UI does not support the Archiving Android applications so here are some tricks.

Here is my development environment versions;

  • Visual Studio 8.3 Preview build 1290
  • Xcode 10.3
  • Xamarin.Mac
  • Xamarin.Android

Follow these steps,

  1. Creating AAB file against APK file
  2. On your Android project edit csproj file with a text editor.
  3. And these lines
 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

Xamarin Error : Firebase.Auth doesn’t work on AppStore Release

if everything is ok and your Firebase.Auth works on your Debug even Release Deploy on your IPhone device but after uploading Release version to App Store, your application doesn’t work ? You should solve your problem like below. On my example Firebase.Auth Recaptcha page doesn’t load and ValidationId was empty. All these are depends on APN Certificate that i didn’t set it up.

  1. Go to Apple Connect>Keys> APN Key (Sandbox & Production)
  2. Last step before download you should upload a Request Authority Certificate
  3. Go to Mac>Keychain Access>Certificate Assistant>Request a Certificate From a Certificate Authority
  4. Fill the fields, beore Save to Disk, Let me to select pair.. than select ECR256
  5. Upload this certificate to step 2. and download the APN Key
  6. Go to firebase left panel upper settings>Cloud Messaging>Push Notifications>Upload Key
  7. At the same screen you need upload a p12 sertificate
  8. Go to Apple Connect>Certificates>Create a Certificate for APN
  9. Take that shit and go to Mac install it
  10. Mac>Keychain Access>You will see your APN Push Certificate>Export it don’t forget the password/username
  11. Back to Google Firebase Console and below your key upload your p12 certificate
  12. All done, your app will work !

Fuckin Rocket Science !

Microsoft Appcenter Xamarin Forms multiple provisioning support

Unfortunately Microsoft AppCenter does not support multiple provisioning profile files. And there is no way today use the provisioning profiles even copying these files using pre build scripts. You can upload files using scripting but can’t force system to use these files.

Even Microsoft team support returns the same answer.

There is one workaround for that, and it is using the Azure Devops.

Error Solved : Xamarin.IOS netstandard, Version=, Culture=neutral, PublicKeyToken=

Here is the solution for,

In Xamarin.IOS.Shared project …netstandard, Version=, Culture=neutral, PublicKeyToken=… or one of its assemblies…

  • First Create an .net 2.0 Library Project in your solution
  • Then add that project as reference in your IOS.Shared project (which you take the error message)
  • Than try again..
  • If still having problem go on and install .NetStandardLibrary nuget package on all of your pages