I want to create a React Native app using Expo Managed workflow (which I've done before) but this time it should listen and "record" all device keyboard input while the app is in the background (something I've never done before). I know there are other keyboard apps that request permission to listen to all device input but can't remember.
EDIT: as @Abe said I'm now thinking of making a custom keyboard trough which the input is processed (and then thrown await while stats are kept). Where do I start when making a custom keyboard for the device using RN Expo?
I have thought of using Expo BackgroundFetch but am stuck as I'm not sure how I would get the input despite being run in the background.
The reason is to create an app that gives the user a weekly summary of the amount of text that has been written along with other attributes regarding writing. I'm mainly making this for iOS but want to try make it for Android too if possible at the same time.
Any tips on how this can be achieved?