I need Android + iOS App for Device Shake Tracking

Job ID: 38513461

Budget: $30 – $250 USD

When loading, the app must read whether the username is saved in async-storage, if it is, then the app does not display the form with the user texbox and the button to save the username, if
there is no username in async-storage, then the form pops up and on pressing the button it has to save that username in async-storage.
After the username is entered, the app starts detecting the Accelerometer sensor.
The sensor should be scanned non-stop in order for the app to recognize every moment when the device was shaken and to record how many times it was shaken, to record the time of the last shake, and the last speed of the shake.
The app should work on the principle that if it recognizes that a 'device_shake' has occurred, it should try to send the data to the web server, and if the Internet is unavailable, then create a file locally on the device
with the data we need after the device shakes. (you can program the code in anything, but to send all the data to the mysql server, the code must contain something similar to this code: const response = await axios.post('https://domain.com/server.php', dataToSend); - so I could control and download data with php code)

Also, the application should work in the background and perform all the above-mentioned processes in the background mode, plus the application should be added to the startup processes so that it starts itself when the device is turned on/restarted.
The app must also scan and record if the application is forced to shut down (if it is possible to do so).