-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications not sent from Google App Engine backend #11
Comments
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 ***@***.***> 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
<#11 (comment)>,
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. |
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: 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 |
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 ***@***.***> 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
<#11 (comment)>,
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.
The text was updated successfully, but these errors were encountered: