I am writing an UWP application. I am trying to generate a file sharing token for an email attachment opened with my App. However, this is raising an exception "Access denied"
//App.xaml
protected override void OnFileActivated(FileActivatedEventArgs args){
String sharingToken = SharedStorageAccessManager.AddFile((StorageFile)args.Files[0]);
}
Is there any alternative to share a temporary file between UWP apps?