Hi everyone, I need some advice on what might be the best way to do this:
I have an Android tablet at home running an app that collects feedback from some sensors in the house and then uploads files containing information about the sensors to my private FTP space. With my and my wife's smartphones, we can read these files and know the status of the sensors in the house.
Additionally, there are specific requests that the smartphones can make to the tablet by sending push notifications, such as opening the driveway gate or telling me the status of the awning.
The problem is with the notifications. With the new Firebase authentication protocol, I can't use them between two Android apps.
How can I replace them? For example, by checking a request file, but how often? I tried checking the files on FTP every 3 seconds, but the battery dies halfway through the day.
What is the best strategy to send a specific request to another Android app without notifications?
I have an Android tablet at home running an app that collects feedback from some sensors in the house and then uploads files containing information about the sensors to my private FTP space. With my and my wife's smartphones, we can read these files and know the status of the sensors in the house.
Additionally, there are specific requests that the smartphones can make to the tablet by sending push notifications, such as opening the driveway gate or telling me the status of the awning.
The problem is with the notifications. With the new Firebase authentication protocol, I can't use them between two Android apps.
How can I replace them? For example, by checking a request file, but how often? I tried checking the files on FTP every 3 seconds, but the battery dies halfway through the day.
What is the best strategy to send a specific request to another Android app without notifications?