You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently using %UserProfile%/.msal/webview2/data as the default location for the userData folder for webview2 but customers have complained that this can cause issues.
"it's important for packaged apps to store their app data within the %LocalAppData%\Packages\xxxxxxxxxxxx folder. Makes it much easier for clean install/uninstall, and enforces app isolation. Unless there is some magic to direct %UserProfile% in packaged apps (which there could be, but it didn't seem so in my preliminary tests), it's not going to get stored in the appropriate place if an app uses APPX/MSIX packaging."
We are waiting on the Webview2 team to provide a better implementation that will allow us to rely upon a default location provided by the webview2 component itself. (MicrosoftEdge/WebView2Feedback#297)
There are also suggestions provided:
(most preferred) Make the WebView2WebUi extendable without having to fork the entire repo, or have some extendable version of it that can be easily passed to .WithCustomWebUi()
Make the user data folder customizable (i.e. a property of EmbeddedWebViewOptions)
(least preferred, but acceptable) Handle the special case of detecting if the app is running with packaged identity and use a subfolder of %LocalAppData%\Packages\xxxxxxxxxxxx instead of %UserProfile%
The text was updated successfully, but these errors were encountered:
Continuation of issue here #2502
We are currently using
%UserProfile%/.msal/webview2/data
as the default location for the userData folder for webview2 but customers have complained that this can cause issues."it's important for packaged apps to store their app data within the %LocalAppData%\Packages\xxxxxxxxxxxx folder. Makes it much easier for clean install/uninstall, and enforces app isolation. Unless there is some magic to direct %UserProfile% in packaged apps (which there could be, but it didn't seem so in my preliminary tests), it's not going to get stored in the appropriate place if an app uses APPX/MSIX packaging."
We are waiting on the Webview2 team to provide a better implementation that will allow us to rely upon a default location provided by the webview2 component itself. (MicrosoftEdge/WebView2Feedback#297)
There are also suggestions provided:
.WithCustomWebUi()
EmbeddedWebViewOptions
)%LocalAppData%\Packages\xxxxxxxxxxxx
instead of%UserProfile%
The text was updated successfully, but these errors were encountered: