TutuGeorge
TutuGeorge

Reputation: 2012

Access shared storage location in Xamarin Forms iOS app

Is it possible to access the storage location of using app groups in Xamarin forms application? I have seen the reference of accessing the same from Xamarin iOS app. Refer: https://developer.xamarin.com/guides/ios/watch/working-with/app-groups/

Could not find the option in Forms app. The provision to enable app groups is not seen in Xamarain Forms application properties window.

Any help on this.

Upvotes: 1

Views: 890

Answers (1)

BytesGuy
BytesGuy

Reputation: 4127

Working with App Groups is platform specific to iOS, so code-wise you will need to make use of the dependancy service:

https://developer.xamarin.com/guides/xamarin-forms/dependency-service/

To enable App Groups you will need to open the Entitlements.plist file in your iOS Project rather than the shared / PCL project - again this is because it is a platform specific feature.

Upvotes: 1

Related Questions