Closed lmgagne closed 7 years ago
Can you confirm that you are using version 1.0.2?
There was an issue with version 1.0.1 where notifications were not sent correctly.
Confirmed. Is there anything to be done in firebase or play store?
On Wed, Jul 12, 2017 at 7:04 AM, Raudius notifications@github.com wrote:
Can you confirm that you are using version 1.0.2?
There was an issue with version 1.0.1 where notifications were not sent correctly.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Raudius/Pushraven/issues/11#issuecomment-314736158, or mute the thread https://github.com/notifications/unsubscribe-auth/AQdthD8oXVvLMephsOoyyro4BzI733Mnks5sNKhRgaJpZM4OMqL7 .
I will look into the issue this coming week. Could you perhaps post some code showing how you are sending the notification through Pushraven so I can try to replicate the issue?
In a nutshell, our backend is based on GCP App Engine. One of our method sends a notification back to the user/mobile phone.
We've been testing reception of notifications using firebase testing capabilities with no issue. Where can we see whether the message has be sent successfully or not?
Here is our code:
Pushraven.setKey(<server key found under firebase/messaging>);
Notification raven = new Notification(); raven.to(user.getFcmToken()); raven.addNotificationAttribute("data", "test");
Pushraven.setNotification(raven); Pushraven.push();
That should work.
I believe you should be able to check through the firebase console what messages have gotten through to the API. If they appear on the console then you should check if the notifications reception is being handled correctly. Otherwise it could very well be an issue with Pushraven and I will investigate further.
This is it... I do not see messages coming in. This snippet of code does not throw any error.
I am still not sure what the issue is. Can you print out the response you get from the push?
System.out.println( Pushraven.push() );
Here is the error I get:
com.google.api.server.spi.SystemService invokeServiceMethod: exception occurred while calling backend method (SystemService.java:398) java.lang.NullPointerException at us.raudi.pushraven.FcmResponse.getResponseCode(FcmResponse.java:32) at us.raudi.pushraven.FcmResponse.toString(FcmResponse.java:92)
I used a fake device fcm id. Could this has anything to do? Is FCM doing some sort of device FCM id validation? If so, why would the push() method return a NPE?
Hello,
I use Google App Engine (Standard Java Environment) and the same error occurs in my project. I am using version 1.0.2.
NullPointerException is thrown in line 32 of FcmResponse after I call FcmResponse.getResponseCode().
If it is a bug I'd also appreciate some fixes, because I did not manage to send any push notification from my server.
I am not too familiar with the Google App Engine, but after delving into some of the Documentation I found this:
https://cloud.google.com/appengine/docs/standard/java/issue-requests
It seems that if you are under the "free quota" you must add the setting "urlfetch" to "appengine-web.xml", so it handles request-calls using the urlfetch methods.
If you are not under the "free quota" or using the Java 7 runtime, then there should be no issues using the native methods.
Although I am not at all familiar with how Google App Engine works, I hope this helps clear the issue.
I had this same issue until i removed the .dry_run(true)
call.
@kubaguzik77 @lmgagne
Can you let me know if you managed to fix the issue with the appengine-web.xml edit?
If not I will look into what else the issue might been.
I wrote a method that does an http call to the FCM url.
On Mon, Jul 24, 2017 at 4:34 AM, Raudius notifications@github.com wrote:
@kubaguzik77 https://github.com/kubaguzik77 @lmgagne https://github.com/lmgagne
Can you let me know if you managed to fix the issue with the appengine-web.xml edit?
If not I will look into what else the issue might been.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Raudius/Pushraven/issues/11#issuecomment-317355251, or mute the thread https://github.com/notifications/unsubscribe-auth/AQdthLQMfCG6DMLKO1638xnMeJ-1C-O3ks5sRFb_gaJpZM4OMqL7 .
Hello,
How can you see whether or not the message was sent and acknowledged properly? The integration works as we are able to send messages directly from the firebase messaging page. However, we do not get any messaging while trying to send messages from the backend (based on Google App Engine).
How can we troubleshoot this? Is the only way to get this info through Google Play Console? If so, is it mandatory to publish the app or there is any other way around?
Thanks.