uilocalnotification - Appcelerator Titanium Urban Airship intercepts local notifications -


i using ti.app.ios.schedulelocalnotification() send local notification whenever device crosses geofence.

i send this:

var iosnotification = ti.app.ios.schedulelocalnotification({      alertaction : "open",      alertbody : 'you have crossed fence!',      badge : notificationcount,      userinfo : {app_name: 'myapp', message_id: message_id},      date : new date() }); 

that show local notification on device. however, when register 'notification' event, don't receive anything:

ti.app.ios.addeventlistener('notification', function(e) {     ti.api.info("**** received: " + json.stringify(e)); }); 

instead, urban airship 'urbanairship.event_push_received' event catches it:

urbanairship.addeventlistener(urbanairship.event_push_received, function(e) {     ti.api.info('urbanairship.event_push_received(e):  ' + json.stringify(e)); }); 

this wouldn't bother me, except none of data included in creation of local notification appears in urban airship event listener.

is there way add data in ti.app.ios.schedulelocalnotification, or way prevent urban airship intercepting local notifications?

thanks


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -