uwpwindows-10file-permissionsknown-foldersstoragefolder

KnownFolders ask for permission everytime app runs on insider build


the upcoming version of Windows 10 has this new system where when the uwp app has the capabiity of any library like Video Library, it tried to make the user more secure by asking for permission with a prompt dialog, so we can use the Video Library only if the user allows the app. This feature is secure and good for the user, but the problem is that everytime the user runs the app the app asks about using the video library which is not a good experience even for the user, so what is the work around for this that if the user allows the app on the first run that the app can use his video library, then the app should somehow store those settings and let the app use their video library on every next run without asking the permissions everytime.

an example to use the video library is with following code

KnownFolders.VideoLibrary

Solution

  • These prompts were introduce in "Insider" builds of the RS4 (Spring 2018) Windows 10 update, but they are being removed from the final release due to some issues (like this one). The final General Availability (GA) release of the Spring update will not have these prompts.

    A future release of Windows might re-introduce these prompts to improve users' control over their privacy.