【问题标题】:Ionic 3 : Clear InAppBrowser cache for Windows platformIonic 3:清除 Windows 平台的 InAppBrowser 缓存
【发布时间】:2018-10-05 09:59:44
【问题描述】:

我在我的混合应用程序 (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 关联的所有缓存?

感谢任何帮助。

【问题讨论】:

  • 你解决你的问题了吗?我面临同样的问题。请帮忙。

标签: javascript cordova ionic-framework ionic2 inappbrowser


【解决方案1】:

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

你说的是 Windows 平台,它在 Android 和 iOS 上都可以正常工作吗? 谢谢

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-16
    • 2018-10-01
    • 1970-01-01
    • 2016-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多