This is the code i am using to register, i cannot edit, so sorry for the 3 posts
01.document.addEventListener("deviceready", onDeviceReady, false);02. 03.functiononDeviceReady() {04. console.log("device is ready");05. // Now safe to use device APIs06. 07. varel = newEverlive('e**********5');08. varpushSettings = {09. iOS: {10. badge: true,11. sound: true,12. alert: true,13. clearBadge: true14. },15. android: {16. projectNumber: '*22*****975'17. },18. 19. notificationCallbackIOS: function(e) {20. // logic for handling push in iOS21. },22. notificationCallbackAndroid: function(e) {23. // logic for handling push in Android24. }25. };26. 27. el.push.register(28. pushSettings,29. functionsuccessCallback(data) {30. // This function will be called once the device is successfully registered31. console.log(data);32. },33. functionerrorCallback(error) {34. // This callback will be called any errors occurred during the device35. // registration process36. console.log(error);37. }38. );39.};

