This script is a generic approach to send push notification using PHP to ios and android devices.