phonegap-parse-plugin icon indicating copy to clipboard operation
phonegap-parse-plugin copied to clipboard

notification is not received

Open Moussawi7 opened this issue 10 years ago • 5 comments

HI I already installed the plugin and everything gonna fine, unless that the notification will not be received unless the application on background. note that the notification will be received when the application launched. Thanks.

Moussawi7 avatar Dec 30 '14 13:12 Moussawi7

Hi, Same problem here. Have you found a solution ? Thanks

thomasMary avatar Jan 06 '15 15:01 thomasMary

@Moussawi7 @thomasMary I also had this problem and I checked the error logs and found this:

The Parse push service cannot start because Parse.initialize has not yet been called. If you call Parse.initialize from an Activity's onCreate, that call should instead be in the Application.onCreate. Be sure your Application class is registered in your AndroidManifest.xml with the android:name property of your tag.

After a bit of Googling I found this StackOverflow question that fixed the problem: http://stackoverflow.com/questions/23560414/apache-cordova-app-crashes-after-receiving-parse-com-push-notification

The solution is a bit hack-y but I hope it solves your problem!

devosray avatar Jan 06 '15 20:01 devosray

@thomasMary It seem that this plugin is out of date, and no support available, try to use pushwoosh

Moussawi7 avatar Jan 08 '15 07:01 Moussawi7

@Moussawi7 Can I use the pushwoosh plugin with Parse.com?

rjmunro avatar Jan 14 '15 18:01 rjmunro

I made a quick write up of how to do what @devosray said here if it helps anyone that was in my position :astonished:

https://github.com/grrrian/phonegap-parse-plugin/issues/8#issuecomment-118955744

ObjectiveTruth avatar Jul 06 '15 19:07 ObjectiveTruth