首页 > 解决方案 > Ionic 3:清除 Windows 平台的 InAppBrowser 缓存

问题描述

我在我的混合应用程序(Windows 10)中使用了 Salesforce 身份验证。我已经集成了 InAppBrowser 插件以在 Web 视图中加载 url。

当有人从应用程序注销时我面临问题,因此缓存不清楚。

我也尝试过以下代码,但选项参数不适用于 Windows 平台。它仅适用于android和ios平台。

var options = "clearcache=yes;clearsessioncache=yes";
console.log(authUrl);
//Wait till the cordova platform is ready before triggering the inappbrowser plugin
this.platform.ready().then(() => {
 this.inAppBrowserRef = new InAppBrowser().create(authUrl, '_blank', options);
    });

有没有其他方法可以清除与 Windows 平台的 InAppBrowser 关联的所有缓存?

感谢任何帮助。

标签: javascriptcordovaionic-frameworkionic2inappbrowser

解决方案


它应该工作。一旦与其他 URL 进行交叉检查,网站 URL 或 Windows 应用程序可能会出现问题。

您说的是 Windows 平台,它适用于 Android 和 iOS 吗?谢谢你


推荐阅读