Hello All,
I know a similar question was asked earlier but the problem there and, therefore, the solution was quite different.
So, my requirement is that I am using a third party system to log people in(using Microsoft ID and APIs). The first step in this process is to have the user sign-in to their MS account using MS sign-in page after which they consent to my app using their credentials. While this works for the first account that is added, the second time the user tries to link another account with my app, the webview presents the previously authorized credentials(I assume from cookies) to the MS servers which then return the success page.
I am using a new page that loads the webview containing layout whenever the user tries to link another account. So a new webview object is obviously being used but the cookies (I think) are sticking around as they probably should. Also, I have tried using the following code but it doesn't seem to do anything.
How do I clear the webview so that it always thinks it is a new page request, kind of incognito mode in chrome?
Thanks.
I know a similar question was asked earlier but the problem there and, therefore, the solution was quite different.
So, my requirement is that I am using a third party system to log people in(using Microsoft ID and APIs). The first step in this process is to have the user sign-in to their MS account using MS sign-in page after which they consent to my app using their credentials. While this works for the first account that is added, the second time the user tries to link another account with my app, the webview presents the previously authorized credentials(I assume from cookies) to the MS servers which then return the success page.
I am using a new page that loads the webview containing layout whenever the user tries to link another account. So a new webview object is obviously being used but the cookies (I think) are sticking around as they probably should. Also, I have tried using the following code but it doesn't seem to do anything.
B4X:
Dim no As NativeObject
no.Initialize("NSURLCache").RunMethod("sharedURLCache", Null).RunMethod("removeAllCachedResponses", Null)
How do I clear the webview so that it always thinks it is a new page request, kind of incognito mode in chrome?
Thanks.
Last edited: