ClearCache() not working on iOS

Welcome! Forums Unity Plugins In-App Web Browser ClearCache() not working on iOS

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11846
    kfournier
    Participant

    Hello.

    I’ve encountered issue with cache clearing on iOS.

    Context:
    User can login to their BIM360 account from our app to browse and download files from it.
    The InAppWebBrowser is only used to handle the login to the user account. It is composed of four screens: 1) email address; 2) password; 3) right permission; 4) auth callback local url.
    Then, we use the token given as parameter in the local url to perform BIM360 requests.

    What we want:
    When the user decide to logout, or if the token is expired, the user has to log again to access online files.

    Problem:
    If we do not clear the cache and the user try to log in again, they are directly at step 3 (they do not have to enter their email/password).
    By clearing the cache (InAppBrowser.ClearCache()) on browser close, everything is ok. On iOS, however, it does not work.

    Is it a known problem ? I’ve seen several posts that were either about the opposite (they did not wanted the cache to be cleared) or about Android (and from 2017/2018).

    Regards,

    Kévin Fournier

    • This topic was modified 3 months ago by kfournier. Reason: wrong html tags
    #11849
    PiotrPiotr
    Keymaster

    What are you using for storing credentials? LocalStorage? Cookies?

    #11852
    kfournier
    Participant

    I do not now what is used by BIM360 to store the credentials. We do not have control over the credential saving by the BIM360 login page. I’ll try to firgure it out and see if we can do something about it through javascript.

    I noticed that one of my sentence was incomplete in my first message:

    By clearing the cache (InAppBrowser.ClearCache()) on browser close, everything is ok on Android. On iOS, however, it does not work.

    Clearing the cache works well on Android so we do not have the problem on this plateform. That’s why I created this thread in the first place.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.