0

I use Xamarin.Auth to save account to make "Remember me" function in my Xamarin.Forms project. It works good for both Android and iOS in debug mode. But when I build it in release mode, it doesn't work for both platforms.

I can't find what is the problem and how I can fix it. Please help me.

Thanks.

Zverev Evgeniy
  • 3,643
  • 25
  • 42
Passionate.C
  • 233
  • 3
  • 20

1 Answers1

0

I had a similar issue. I figured out that the issue was with the Linking property in Android and iOS. My linking property was set to 'None' for both debug and release. It worked fine in debug but on release I had to change it to 'SDK Assemblies Only' and it worked perfectly fine after changing. Just note that changing these properties can have negative effect in your app so test everything thoroughly. I suggest for you to read the links below to understand what linking is doing.

Android Linking Property

iOS Linker Property

11011
  • 38
  • 4
  • My linking property set to 'None' for both debug and release. I've tried to change linking property to 'SDK Assemblies Only'. But it failed to build. – Passionate.C Sep 29 '17 at 21:45
  • @Passionate.C can you post your code? Most of the time when an app works in debug mode but not in release it has to do with the linker property but in your case there may be something else. Double check you give your app the correct permissions on iOS and Android for access to Account Store. I would think you do have the right permissions since it's running on iOS in debug, but double check just in case. – 11011 Sep 30 '17 at 15:35