freshplanet / ANE-Push-Notification

Air Native Extension (iOS and Android) for Push Notification
Apache License 2.0
205 stars 104 forks source link

Events not triggering in development version. #15

Closed brybam closed 7 years ago

brybam commented 11 years ago

So, testing on my Android Galaxy Nexus I'm sending the HTTP POST using php. When using the the master branch, the "coming from notification event triggers", but the params var is null and I get a log error saying it's unable to parse the params. So I saw there was a development branch which I hoped would fix the parms bug and it also comes with a bunch of newly made events. But non of these events ever trigger on Android. I made the event listeners exactly the way it was recommended in the readme, but non of them work. Any ideas?

Also, this isn't really mentioned anywhere but maybe it will help someone else. At first I thought that we should listen for the notification event, then use the pushLocalNotification function to actually make the notification using the params var. But after looking into the code a little bit I saw it makes a notification for us and there are designated vars already assigned to use. What you need to send in the data JSON is "tickerText","contentTitle","contentText","pictureUrl" or "facebookId" although i'd like to mention facebookId/pictureUrl is broken. I've been testing that with no luck. but the other vars are working.

Any ideas why the events are not working? Thanks a lot for putting this ANE out here for others to use!