Reputation: 466
I want to fetch my app data usage and storage information in Ionic 5 app , How to do that ?
Upvotes: 0
Views: 414
Reputation: 2539
You can use the Diagnostic plugin for getting device-related information.
In your particular case, to get the storage information (free space, filled space etc.), use getExternalSdCardDetails()
method provided by plugin:
diagnostic.getExternalSdCardDetails(details=>
{
console.log('Details',details);
});
I haven't used App Data Usage information, but you can try App Center Analytics plugin and track the data usage. Read the docs here
Upvotes: 1