File sharing token retrieval using SharedStorageAccessManager.AddFile fails for temporary files

101 views Asked by At

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?

0

There are 0 answers