Device notification in cordova projects