This is my first application on Ionic and I am working on an application that needs to calculate the total amount of data usage on the network (not the wifi) within a specific time period. There are two possible ways.
- Getting total mobile data used within a specific period of time from the device. or
- Calculating the data being used within the application.
Anyone of above approach will be fine. I actually want to trigger a function when a specific limit is reached.
I have tried looking for a plugin to achieve this and I came across https://github.com/apache/cordova-plugin-network-information But I was unable to find a way to get data usage in this plugin.
Any plugin or method to achieve any of above two ways? Your suggestion towards the right direction will be highly appreciated.