-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Notification not showing..... #101
Comments
@Chitranjanbariya well you'll only get a notification when you send one via GCM. There is a sample ruby file in example/server called pushGCM.rb and you can use that to send a test push. You will only get notifications in the status bar when the app isn't running or is in the background. |
I have done it.... |
@macdonst I have a similar problem. Actually I have been able to receive the push notifications through the JS, only when the app is in foreground. I'm running the following CURL command
GCM answer "success: 1". logcat shows:
So my phone received the push notification, but did not show anything in the notification bar. It only works when the app is in foreground: this time the JS callback is fired. Edit: this seems related to #93 |
@slorber what version of the plugin are you using? Sending the push via the "notification" method should work in 1.2.1+. I'm on vacation this weekend (long weekend in North America) so I may not get a chance to test until next week. |
@slorber I kinda lied because this was really bugging me I did pull out my laptop to do some testing and verified the problem and saw that you had and elegant fix for it so I merged it. |
thanks :) tell me when you decide to release this fix please. However @Chitranjanbariya you will have to test to ensure that this solves your problem (it may be a different problem...) You can do so by using my forked branch:
|
@slorber Have you been able to receive push notification when the app is closed since then? I'm unable to receive push notifications when my app is closed but it's fine when it's running on the background. |
yes it works for me @xavianaxw (try with my curl example, I remember I had troubles when the payload did not have title or body I think) |
i am unable to receive push notification when the app is in background or even when the app is closed. Were you guys able to do it? @xavianaxw @slorber? |
yes it worked for me |
how did you get it to work @slorber? can share code? |
This thread has been automatically locked. |
But after this nothing happen..push.on('notification', function(data) not called.
Now Question is How can i send notification to application ?
so i can see notification on notification status bar in Android.
The text was updated successfully, but these errors were encountered: