ios - Urban Airship : Push Notification with Phonegap not working -
ios - Urban Airship : Push Notification with Phonegap not working -
can please tell me missing
i using phone gap develop hybrid app.
my config.xml looks like
<preference name=“com.urbanairship.developmentappkey” value=“*******rhkihsw9passka ” /> <preference name=“com.urbanairship.developmentappsecret” value=“****2qdjozjm1g ” /> <preference name=“com.urbanairship.inproduction” value=“no” /> when build app using xcode in console next info been logged
1.278017ms 2014-06-26 20:09:57.793 mercer select[745:60b] [w] -[uaconfig validate] [line 152] development app key not valid. 2014-06-26 20:09:57.794 mercer select[745:60b] [w] -[uaconfig validate] [line 156] development app secret not valid. 2014-06-26 20:09:57.795 mercer select[745:60b] [w] -[uaconfig validate] [line 160] production app key not valid. 2014-06-26 20:09:57.796 mercer select[745:60b] [w] -[uaconfig validate] [line 164] production app secret not valid. 2014-06-26 20:09:57.797 mercer select[745:60b] [e] -[uaconfig validate] [line 168] current app key (***rhkihsw9passka ) not valid. 2014-06-26 20:09:57.798 mercer select[745:60b] [e] -[uaconfig validate] [line 173] current app secret (****2q_djozjm1g ) not valid. 2014-06-26 20:09:57.799 mercer select[745:60b] [e] +[uairship executeunsafetakeoff:] [line 141] airshipconfig.plist file missing , no application credentials specified @ runtime. my js code : writing below code within device.ready event
document.addeventlistener("urbanairship.registration", function (event) { alert("inside"); if (event.error) { alert('there error registering force notifications'); } else { alert("registered id: " + event.pushid); } }, false); document.addeventlistener("urbanairship.push", function (event) { alert("incoming push: " + event.message); }, false); ios cordova
Comments
Post a Comment