ios - Parse Push Notification comes without Payload -



ios - Parse Push Notification comes without Payload -

whenever seek send info cloud can't access ios app since userinfo null pointer in either application(application: uiapplication, didreceiveremotenotification userinfo: [nsobject : anyobject], fetchcompletionhandler handler: (uibackgroundfetchresult) or application(application: uiapplication, didreceiveremotenotification userinfo: [nsobject: anyobject]). function implemented follows

func application(application: uiapplication, didreceiveremotenotification userinfo: [nsobject : anyobject], fetchcompletionhandler handler: (uibackgroundfetchresult) -> void) { pfpush.handlepush(userinfo) println("received notification") handler(uibackgroundfetchresult.newdata) }

the info beingness sent this:

parse.push.send({ where: pushquery, data: { aps: { alert: "test", sound: "", "content-available": 1, badge: 0 }, "p": "12" } }, { success: function () { response.success("hello world!"); }, error: function (error) { response.error(error); } });

is there way access property p data? why userinfo nil whereas everywhere else said pointing @ particular object accessed dictionary.

the message beingness displayed , badge can adjusted. if leave out content-available attribute fires different delegate, force working in general.

ios swift parse.com push-notification

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -