Ionic 5 应用程序中的应用程序数据使用和存储信息
App data usage and storage information in Ionic 5 app
我想在 Ionic 5 应用程序中获取我的应用程序数据使用情况和存储信息,该怎么做?
您可以使用 Diagnostic plugin 获取 device-related 信息。
在您的特定情况下,要获取存储信息(免费 space、填充 space 等),请使用插件提供的 getExternalSdCardDetails()
方法:
diagnostic.getExternalSdCardDetails(details=>
{
console.log('Details',details);
});
我没有使用过应用数据使用信息,但你可以试试App Center Analytics plugin and track the data usage. Read the docs here
我想在 Ionic 5 应用程序中获取我的应用程序数据使用情况和存储信息,该怎么做?
您可以使用 Diagnostic plugin 获取 device-related 信息。
在您的特定情况下,要获取存储信息(免费 space、填充 space 等),请使用插件提供的 getExternalSdCardDetails()
方法:
diagnostic.getExternalSdCardDetails(details=>
{
console.log('Details',details);
});
我没有使用过应用数据使用信息,但你可以试试App Center Analytics plugin and track the data usage. Read the docs here