Android Phonegap: onDeviceReady checks for pushes