avivais / phonegap-parse-plugin

Phonegap 3.0.0 plugin for Parse.com push service
195 stars 315 forks source link

Send the notification event callback #52

Closed grrrian closed 2 years ago

grrrian commented 9 years ago

This allows receiving callbacks in the app when a push notification is received.

When the app is running in foreground, the push payload is sent straight to the event callback defined in registerCallback(ecb, successCallback, errorCallback).

When the app is running in background, the push payload is handled by the native OS. Works for Android and iOS.

Also fixed:

avivais commented 9 years ago

@grrrian, seems like there are conflicts, could you pull the latest code and resolve?

grrrian commented 9 years ago

Sure. Sorry about that

ian

On May 6, 2015, at 7:51 PM, Avi Vaisenberger notifications@github.com wrote:

@grrrian, seems like there are conflicts, could you pull the latest code and resolve?

— Reply to this email directly or view it on GitHub.

grrrian commented 9 years ago

Alright, i tested it on Android an iOS. This should be good to go ;)

nobesio commented 9 years ago

When is this branch going to be merged? Thanks you very much

jonathancod commented 9 years ago

+1

garciadiegosebastian commented 9 years ago

+1

grrrian commented 9 years ago

Can one of you test this from my branch (https://github.com/grrrian/phonegap-parse-plugin) to confirm it works? I only tested it on an iPhone 5 running iOS8 and on an Moto X running Android 4.4.2.

jonathancod commented 9 years ago

Greetings, i have been trying to use your branch but i got an error: "Cannot read property 'initialize' of undefined". However i have to confess that i have no idea on how to do the part of the class in android. Im using a moto g with android 4.4

grrrian commented 9 years ago

This happens because parsePlugin is undefined. You would get this error on any branch. Make sure to use parsePlugin once the device is ready (see README). parsePluign is a global variable, in angular you can access it like this: $window.parsePlugin

jonathancod commented 9 years ago

That's the way i am doing it. And i got the same error on the avivais branch. The benjie one (https://github.com/benjie/phonegap-parse-plugin) however works fine, but i'm super interested in the callback events that you got here.

grrrian commented 9 years ago

Can you try again? There has been updates.

grillorafael commented 9 years ago

+1

grrrian commented 9 years ago

@Gauloix : do you see bolts-android-1.1.4.jar in platforms/android/libs? Let's open an issue in my branch instead of discussing this here (https://github.com/grrrian/phonegap-parse-plugin/issues/2) ;)

JeremyPlease commented 9 years ago

+1

rubnvp commented 9 years ago

+1

leonardliau commented 9 years ago

I had successful working push notification. But I can't receive the push message using registerCallback. When i test send push in parse.com and I click the app notification nothing happens.

Please help

felquis commented 9 years ago

@grrrian's repo looks like the best plugin to integrate Parse SDK with Cordova.

I'd appreciate if it was merged.

grrrian commented 9 years ago

Thanks!

ian

On Aug 20, 2015, at 12:25 PM, Felquis Gimenes notifications@github.com wrote:

@grrrian's repo looks like the best plugin to integrate Parse SDK with Cordova.

I'd appreciate if it was merged.

— Reply to this email directly or view it on GitHub.

felquis commented 2 years ago

@grrrian We did have fun 6 years ago, thank you for all the support with this amazing plugin.