Sending notification to Android Application using PHP
<p>I am making an android application that can be remotely managed by PHP.</p>

<p>I mean like, for example, I want to send a notification to the android app.
My android app will then fetch it and process it.</p>

<p>I have an idea, my PHP program will just save this notification to "pending notifications table" then my android app will fetch it. But my android app will always fetch like for example every 5 seconds, get pending notifications, and even if no pending notifications, it will just fetch and fetch every 5 seconds which I think not a better solution for this.</p>

<p>What I want to do is, when I send a notification to the android app using PHP, it will automatically be processed.</p>

<p>Any better solution to this?</p>

<p>Thank you. </p>

<p>PS.
What I mean with notifications are not push notifications. It's like a command that I will send to the android app.</p>
