Forum Cross Platform with Xamarin

Access Xamarin.Auth AccountStore in Share Extension iOS

Recently, I have been working on the share extension for my iOS project. We have used Xamarin.Auth for authentication.

My problem is, I am not able to access the AccountStore of the main app in my share extension. I need to check if the user is logged in or not in the main app. If logged in, I will use the access token from the AccountStore to perform the post operation from the share extension. If not, I will display a message saying "please login first in the main app".

Is there a way, other than NSUserDefaults, to access the AccountStore in the share extension? Whenever I tried to access the AccountStore from the share extension, it does not have any account details. Here, I am guessing I am accessing a different AccountStore altogether may be an AccountStore of Share extension.

Best Answer


Sign In or Register to comment.