The example is about having an android device connected via router at home. Incoming requests are routed to this device. For security reasons devices inside the mobile network can't be reached.
Of course there is a solution. Like WhatsApp or other apps you can have a cheap hosted server for 5$ which runs php & MySql. Via OkHttpUtils you can send data to that server and do some stuff (like alarm other devices, retrieve data, etc.). Quite simple and there are tons of examples here. I use that configuration with FCM (Firebase Cloud Messaging).
Workflow:
Your app -> OkHttpUtils -> Network (3G/4G WiFi) -> Your Sever -> PHP -> MySQL and back
Problem here: You need sensors for the alarm (door opened, engine started, car moved, etc.)
I have another working solution with a tracker (via Ebay for 40$) which can do a lot of stuff with. It uses SMS to alarm and offers functions like GPS location, fencing, door check, etc. Even there's a relay to cut the engine's function. The user can set phone numbers where the sms goes to. Inside the app just read the sms and react.