1
I realized the creation of an application through Android Studio. I have a Mega Rduino, Shild Ethernet and infrared sensors.
I would like to communicate my website with my application.
Ex: I was traveling, when the infrared sensor triggered, I was alerted in my application.
I saw many tutorials, but only with intranet network.
Just remembering, my internet contemplates the system IPV6.
http... protocol but if it is the most ideal for your project, I cannot say. On Arduino or another device on the local network, you mount a small server. The idea would be to send the data to that local server over the intranet. This server would have an internet connection and on your smartphone you would have an app to maintain constant communication with the server. Search for "message Queue".
– Daniel Omine
I already think it’s better to use "push Notifications". The Android operating system sometimes kills applications that are unused for a while and the push has the advantage of restarting these applications when a new message arrives.
– Piovezan