How to disable webview cache for Windows Phone 8.1 Runtime universal app?

Is it possible to disable cache for the Webview control for a Windows Phone 8.1 runtime universal app? My App seems to be remembering the information it received the first time. My app logs me into a service and when I go back to rerun app in the emulator
(without completing shutting down the emulator) it logs me in automatically rather than giving me the prompt. This behavior is in the NavigationCompleted handler if that helps explain a bit more on where I am hitting this issue.
If I were to shut off the emulator completely and then restart it then I am prompted for the login name and password again. I have gotten over this cache issue, when I was using the HttpClient in other part of my app, by sending the no-cache in the header
as:
client.DefaultRequestHeaders.Add("Cache-Control", "no-cache");
Can I do something similar for the webview control?
thanks
mujno

Hi mujno,
As I know currently there is no programmatically way to clean cache for WebView, see Matt's blog:How to clear the WebView cache
However if you are developing an enterprise app, you should be able to invoke some scripts to clean for you, see this for more information:Brokered
Windows Runtime Components for side-loaded Windows Store apps
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to disable memory cache for SL410?

    Hi,
    My lenovo thinkpad SL410 has Windows 7 prof edition as its OS.  But in the last few months it frequently crashes.  Many times when I use Chrome browser status would indicate AppCache, and that's an evil OMEN for its usually the prelude of crash.  Other browser may or may not have such issue, however, Chrome is really my preferred web browser.
    Some research seems to suggest disabling memory cache via BIO setup would resolve it.  And here's my lenovo's BIO info:
    Version: 1.23
    Date: 2009-10-19
    but it does not have any info as to who's its maker or the like.  And I don't see any option in the BIO setup that would allow me to disable cache.  So, two questions, 
    a) Is it possible to disable memory cache for SL410?
    b) if so how?
    Thanks.

    Hi mujno,
    As I know currently there is no programmatically way to clean cache for WebView, see Matt's blog:How to clear the WebView cache
    However if you are developing an enterprise app, you should be able to invoke some scripts to clean for you, see this for more information:Brokered
    Windows Runtime Components for side-loaded Windows Store apps
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to develop a Library for Windows Phone 8.1?

    Hello guys!
    I'm a quite new developer in this topic, I have never created a Library and right now, I need to create a library using this project of C because the normal OCRs cannot recognize 7 segments display:
    https://www.unix-ag.uni-kl.de/~auerswal/ssocr/
    Last year, I used a library for SQLite (in the beginning it didn't have a Nuget package) and you must add a C++ project to execute SQLite code in WP8. I hope someone might give me an idea where to read and help me with this project. Thanks a lot
    for your worthy knowledge.
    Federico Navarrete

    I need to use a special OCR that detects 7 Segments Displays. I have been reading during the week and I discovered that the most similar project is this one:
    Seven Segment Optical Character Recognition
    However it's a C project not a C# or VB and I must create a special library (or project) to integrate with my Windows Phone App. As I said before last year I used this article:
    How to use SQLite in Windows Phone
    And in the beginning it was just a C++ project that you must add to manipulate SQLite. So, I think I should create something like that for migrate those libraries and later integrate with my project but I have never worked with this kind of libraries
    or create C/C++ libraries that finally will work with a C# App. Thanks for your time.
    Federico Navarrete

  • How to disable the  Options for a decision workitem at runtime

    I want to  disable the  Options (in this  case, Approve  and Reject ) for a decision workitem  at runtime (depending on a condition).

    Hi Dhavalshree,
    As vijay have mentioned, I will not be possible to Disable option of a decision step at runtime.
    You can get this functionality by following the steps mentioned below
    1)     Have one more step (CONDITION STEP) before this decision step in workflow definition
    2)     In the condition step, with the step name say (approve or reject)
    3)     In the condtion tab, define a flag say &YFLAG&
    4)     Write the expression to this flag as &YFLAG& = Y
    5)     Define two outcomes for this condition step i.e. True and False
    6)     Under u2018Trueu2019 give the outcome name as APPROVE
    7)     Under u2018Falseu2019 give the outcome name as REJECT
    8)     Based on the path have two different decision steps in each path of condtion step
    9)     In the Approve Pathu2019s decision step define only one option i.e. Approve
    10)     In the Reject Pathu2019s decision step define only one option i.e. Reject.
    Hope this will help you.
    Regards,
    Deepa Kulkarni

  • How to disable browser caching for a specific JSP

    Is it possible to keep the browser from caching a JSP? If so how?

    you can put
    response.setHeader("pragma","no-cache");
    response.setHeader("cache-content","no-cache");
    response.setHeader("expires",0);
    in your jsp that will do..

  • Open Question: question to those who comment about the lack of apps for Windows Phone 8

    We have read every Lumia review and we are listening. An open question to those who comment about the lack of apps for Windows Phone 8.Tell us which apps you miss? Nokia/MSFT Customer Care

    The major apps that are missing are Banking Apps.  There are a few, but major banks like Regions Bank, Capital One Bank, are nowhere to be found for Windows Phone.  Microsoft should be pursuing these banks to develop apps for the platform.  Maybe bribe them with free software or tech support or something.  Also some of the dating apps like Grindr for the gay community, Blender for the straight community, are lacking as well.  Perhaps Microsoft could assist them in developing the "unified" app for both Windows and Windows Phone?
    In fact, Microsoft would do well to begin a "Developer Assistance Program" where developers could (for a small fee) contact the DAP Center and get assistance with issues creating apps for the Windows Platform.  If developers know they have a source to go for assistance, they may be more inclinded to develop better apps.

  • How is SQLite used for windows phone 8.1 in Visual Studio2013

    Hi, 
           I'm developing app on Windows 8.1 currently. Can any one please help me with the steps to proceed so that I can create a database using SQLite for windows phone 8.1 through Visual Studio2013.

    Hi SwetaSinha,
    Thank you for posting in MSDN forum.
    Since this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help
    System, and Visual Studio Editor.
    Based on your issue, if you want to know how to create a database using SQLite, I suggest you can ask this issue directly to the  SQLite official website:
    http://www.sqlite.org/support.html, maybe you will get better support.
    In addition, since the SQLite is a extension tool for the Windows Phone 8.1, so I suggest you can post this case to the SQLite for Windows Phone 8.1:https://visualstudiogallery.msdn.microsoft.com/5d97faf6-39e3-4048-a0bc-adde2af75d1b,
    and then click “Q AND A”, you will get better support there.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What to use instead for isscriptenabled for windows phone 8.1 in webview control

    For Windows phone 7/8, we could use the Webbrowser control in XAML and use IsScriptEnabled to true or false to run JavaScript code. I can't find this attribute in XAML for the webview control. Is there an equivalent in WebView for me to use in my Windows
    Phone 8.1 app?
    Thanks
    mujno

    Hi Mujno,
    Yes, as you said that the IsScriptEnabled is not supported in the WebView. Then as far as I known there is no such an attribute in XAML for the webview control that is equivalent to the IsScriptEnabled attribute in the WebBrowser. For the workaround
    please try to refer to @Rob Caplan [MSFT]'s reply in this similar thread:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/1f8c9832-ce12-47c8-bb7a-96694cf80622/is-there-an-equivalent-of-webbrowserisscriptenabled-for-the-windows-8-webview-control?forum=winappswithcsharp
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can we use Custom MessageBox in SelectionChangedEvent of LongListSelector for Windows Phone 8

    Dear Sir/Madam,
    How can we use Custom MessageBox in SelectionChangedEvent of LongListSelector for Windows Phone 8.
    Actually my problem is that When i am using Custom  MessageBox in SelectionChangedEvent of LongListSelector,when i am click Open(Left Button) it's working fine and navigated correctly,But when i am Click the No(Right Button) then it stayed in same page
    but all that page is in stuckup i mean that page is not working and not doing any event.
    My C#.net Code
    private async void userPageLongListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
    if (e.AddedItems.Count > 0)
    if (userPageLongListSelector.SelectedItem == null)
    return;
    if (dbTenMin == null)
    dbTenMin = new Database(ApplicationData.Current.LocalFolder, "tenMInDBSchema.db");
    await dbTenMin.OpenAsync();
    var res = (sender as LongListSelector).SelectedItem as _10Min._10MinClass.minUserPages;
    var resIndex = (sender as LongListSelector).ItemsSource.IndexOf(userPageLongListSelector.SelectedItem);
    string selectedPageName = res.userPages.ToString();
    string selectedPageDesignUser = res.pageDesignUser.ToString();
    int selectedIndex = resIndex;
    CustomMessageBox messageBox = new CustomMessageBox()
    Caption = "Message...!",
    Message = "This form need offline datalist,Please load now.",
    LeftButtonContent = "Open",
    RightButtonContent = "No"
    messageBox.Dismissed += (s1, e1) =>
    switch (e1.Result)
    case CustomMessageBoxResult.LeftButton:
    string uidAndpwd = _10MinClass._10MinStaticClass.csUidAndPwd.ToString();
    _10MinClass._10MinStaticClass.csDataListPageDetails = selectedPageDataDetailsForSchema.ToString();
    _10MinClass._10MinStaticClass.csAllDataLists = offlineDataBaseDataListNam;
    _10MinClass._10MinStaticClass.csNotCreatedSchemaNameOfDBList = notCreatedDataLists;
    userPageLongListSelector.SelectedItem = null;
    if (dbTenMin != null)
    dbTenMin.Dispose();
    dbTenMin = null;
    NavigationService.Navigate(new Uri("/10MinformDataList.xaml", UriKind.Relative));
    else
    NavigationService.Navigate(new Uri("/10MinformDataList.xaml", UriKind.Relative));
    break;
    case CustomMessageBoxResult.RightButton:
    break;
    case CustomMessageBoxResult.None:
    break;
    default:
    break;
    messageBox.Show();
    Same custom messagebox code working in Phone_BackKeyPress event i am writing the code in Right Button that e.OriginalSource.ToString(); then it is working fine.
    But It is not working in Selection Changed Event in LongListSelector control in Windows Phone 8.
    Please help me,as soon as possible.
    Thanks & Regards,
    SrinivaaS.

    What happens if you leave the implementation for LeftButton empty as well , does the page gets stuck in that case also, if you press left button?
    i.e.
    CustomMessageBox messageBox = new CustomMessageBox()
    Caption = "Message...!",
    Message = "This form need offline datalist,Please load now.",
    LeftButtonContent = "Open",
    RightButtonContent = "No"
    messageBox.Dismissed += (s1, e1) =>
    switch (e1.Result)
    case CustomMessageBoxResult.LeftButton:
    break;
    case CustomMessageBoxResult.RightButton:
    break;
    case CustomMessageBoxResult.None:
    break;
    default:
    break;
    messageBox.Show();
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • How to make backward compatibility of windows phone 8.1 app for windows phone 7?

    I developed windows phone 8.1 app which is in windows phone store. Now, i want to make this app compatible for windows 7 also. Is it possible, if yes then how?

    It may be that you are using non-backward compatible capabilities in your Windows Phone 8.1 app(s).
    Developers that want to develop for different OS's usually have platforms with the different OS's on them for developing applications so they work on each platform.
    I suppose you developed for Windows phone 8.1 rather than Windows phone 7. Therefore your app runs on a different framework than a Windows phone 7 has as well as probably newer hardware with greater capabilities.
    So you will probably need to purchase an older phone that came with Windows phone 7 in order to develop for. I couldn't find documentation like the last link below (App capabilities and hardware requirements for Windows Phone 8) for Windows phone 7
    from Microsoft but maybe you can.
    Windows Phone OS 7.1 - Developing a Windows Phone Application from Start to Finish
    Types of Applications
    The Windows Phone application platform provides two frameworks for developing applications:
    Silverlight
    The Silverlight framework supports event-driven, XAML-based application development.
    XNA
    The XNA Framework supports loop-based games.
    Silverlight and XNA can also be combined in a single application.
    The following table lists some of the criteria that you can use to determine whether you should use Silverlight or the XNA Framework for your Windows Phone application. With Windows Phone OS 7.1, you can combine Silverlight and XNA into one application. 
    For more information about Silverlight and XNA, see
    The Silverlight and XNA Frameworks for Windows Phone. For more information about the application platform, see
    Application Platform Overview for Windows Phone.
    What's New in Windows Phone 8.1
    Platform convergence with Windows Store apps
    Windows Phone 8.1 introduces an important change in the Windows Phone developer ecosystem. In this release, Windows Phone converges with the Windows Store apps platform into a single developer platform that runs the same types of apps—Windows Runtime apps.
    Platform convergence began in Windows Phone 8, which supports a small subset of Windows Runtime APIs, but which differs from Windows in many core areas. In Windows Phone 8.1, there’s so much more in common—a much larger API set, a similar app model
    and life cycle, a shared toolset, a common UI framework—Windows Phone and Windows Store app developer platforms truly have become one, single development platform.
    Of course there are still some small differences in behavior and supported features between Windows Phone and Windows Store apps. Some of these are the result of timing of the different product cycles, and they may not appear in future releases. Some differences
    are the result of the different natures of phones and computers, their sizes, and the way people use them. We encourage developers to think in terms of Windows app development—developing for a single Windows Runtime, but targeting two different platforms on
    phones and computers.
    Required Tools for Windows Phone Development
    App capabilities and hardware requirements for Windows Phone
    8
    La vida loca

  • How do I distribute a dll with UserControl made for Windows Phone 8.1 Xaml WinRT to other developers

    I have created a dll for Windows Phone 8.1 Xaml WinRT.  It has two UserControls and two classes with APIs for developers to use.  In the Silverlight environment, I would just send the DLL from the BIN directory to the other developers who would
    reference it and be able to consume the UserControls.
    With WP 8.1 Xaml there are several files in the BIN directory besides the DLL; there is also the following:
    A .pdb file
    A .xbf for each UserControl
    A .pri file
    A .xr.xml file
    When I send it to the other developers and they have all of the files from the BIN directory, they reference the .DLL but get the following when they try to use one of the UserControls at design time:
    TargetInvocationException: Exception has been thrown by the target of an invocation.
    TypeLoadException: Could not find Windows Runtime type 'Windows.UI.Xaml.TickBar'.How do I need to package this for the other developers to be able to consume properly.  I looked at Visual Studio
    Extensions that that seems like a lot of work to just send someone a DLL.
    Dick

    Hello Dick , 
    I have a problem similar to your problem, currently I am making a one dll file that contained  one class file and one User control. after build project
     I could see files like  this a photo.
    Acutually I am trying to  make a extension sdk, but I don't know correctly how to place files to dirctroy.
    As mentioned by you I tried to follow.
    LIBRARYNAME.dll
    LIBRARYNAME.pri
    LIBRARYNAME(folder)
    ---UserControl.xbf
    ---UserControl.xaml
    ---UserControl.xr.xml
    But I can not use the xaml( usercontrol.xaml ) on when installed in other apps.
    This is my vsix folder sturucutre ,Let me know if you ever know about that
    best regard 
    Derrick

  • How to create a VPN client for Windows Phone 8.1?

    We have our own VPN client for Windows and Android. I would like to create a VPN client  for Windows phone 8.1. After referring these site I found that there are some third
    party VPN plugins available for WP 8.1.
    I checked OpenVPN but it is also not available for WP 8.1.
    Is there any APIs available for creating a VPN client in WP 8.1 similar to
    VpnService provided by Android SDK ?

    The VPN APIs for WP8.1 are not open at this time.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Books about MVVM, architecture, design patterns for Windows Phone 8.1

    Hi,
    I'm looking for a book or books (or other resources) that explain how to develop an app with a proper architecture. I mean what each layer (bussines layer, data layer, network access) should do and how should it look like. I'm also looking for a book about
    MVVM.
    Right now I'm struggling with how to create a layer for network communication - how to separate classes for requests and responses, how to manage requests and create some queue of requests and also to provide some way to cancel them when they are no longer
    needed, how to work with servers that use some level of security (cookies, certificates etc.).
    Another thing is caching - how to design a short-term cache or a persistant cache (database), what technologies I can use etc.
    Last thing that I'm struggling with is also naming. How to name classes in those layers, e.g. to distinguish between classes mapping data from some ORM database, for mapping on JSON in network communication. etc.
    I hope you got the idea :)
    Thanks.

    Currently, I don't find a book about MVVM pattern for Windows Phone 8.1, but I think MSDN and some blogs have some useful samples and conceptions: http://msdn.microsoft.com/en-us/library/windows/apps/jj883732.aspx
    http://channel9.msdn.com/Series/Windows-Phone-8-1-Development-for-Absolute-Beginners
    And I think your question includes too much scopes, maybe you need to split it into some blocks and get help in the related forum
    Best Regards,
    Please remember to mark the replies as answers if they help

  • I can't install "windows phone power tool" in window 8 for windows phone 8 app development.

    Dear Sir/Mam,
    I can't install "windows phone power tool" in window 8 for windows phone 8 app development.
    I am download the Windows phone power tool  for install in windows 8 for wp8 app development then it show the dialogbox for install that software. if i am click on install button it shows a another dialogbox that 
    i am using this link for install wp power tool.
    "https://wptools.codeplex.com/releases/view/97029"
    System Update Required,
    Unable to install or run the application. The application requires that assembly
    Microsoft.SmartDevice.Connectivity Version 12.0.0.0 be installed in the Global Assembly Cache(GAC) first .
    More information on this system update can be found by visiting the site here()
    How can i solve this problem. Please help me for install wp8 power tool.
    Thanks & Regards,
    SrinivaaS.

    Hi SrinivaaS Birlangi,
    >>Microsoft.SmartDevice.Connectivity Version 12.0.0.0 be installed in the Global Assembly Cache(GAC) first
    When we meet the above exception, first please try to make sure that we have installed the WP8.0 SDK very well.
    Then please try to check the following article which may give you some idea:
    https://wptools.codeplex.com/workitem/41 .
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Bar Code Scanning for Windows Phone 8.1

    Hi,
    I need to find proper way how to scan bar codes in Windows Phone 8.1 or in universal app. I found out that there is native class BarcodeScanner available only for client apps and not for WP. I also find 3rd party library zxing.net, which is not working very
    well on WP 8.1. I have done really deep research, but I have not found any single working solution for WP 8.1, so I would like to ask for your help in finding of library with which I will be able to scan barcodes on WP 8.1.
    Thank you.

    If you don't need a universal App you could build a Silverlight 8.1 App and use the old Camera APIs which work nicely with ZXing.Net. I have done so myself.
    As for Windows 8 and Universal Apps - you would have to implement a CustomSink for the Video Stream, extract Frames from there and pipe those though a recognition library. So far there seems to be no ready made solution that offers this.
    So right now using the old APIs would be my suggestion.

Maybe you are looking for