titanium studio push notifications closing the app
问题 I am trying to show push notifications in android app, developed by titanium studio, my getting alert with unfortunately app is closed after this my is clossing, my code is try { CloudPush.retrieveDeviceToken({ success : function deviceTokenSuccess(e) { deviceID = e.deviceToken; Ti.API.info(deviceID); Ti.App.Properties.setString('deviceid', '' + deviceID); }, error : function deviceTokenError(e) { alert('Failed to register for push! ' + e.error); } }); } catch(e) { alert('Error :', e); } //