ios - Track remote push notifications when app in background -


i use urban airship handle remote push notifications ios app. works expected, , notifications both in foreground , in background. track incoming remote push notifications (even if not executed). if remote push arrives, invoke code record kind of notification was. seem able handle when user taps notification, , not when received. possible?

i have set background mode "remote notifications", implemented both didreceiveremotenotification in appdelegate , both receivedbackgroundnotification urban airship. have set backgroundpushnotificationsenabled yes.

any ideas if possible?

here example of push notification:

{     "_" = "q-pr3meylaees8csdiudl0-a";     aps =     {         alert = "a simple message";         badge = 53;     };     id = ea591946c21d437f8fc1c851e1c1e728;     pid = 6a26766232e14d971dc1417a0c217bfc;     type = c1; } 


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

ios - Possible to get UIButton sizeThatFits to work? -