简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM