Giter Club home page Giter Club logo

Comments (13)

Raudius avatar Raudius commented on July 28, 2024

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.

from pushraven.

lmgagne avatar lmgagne commented on July 28, 2024

from pushraven.

Raudius avatar Raudius commented on July 28, 2024

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?

from pushraven.

lmgagne avatar lmgagne commented on July 28, 2024

from pushraven.

Raudius avatar Raudius commented on July 28, 2024

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.

from pushraven.

lmgagne avatar lmgagne commented on July 28, 2024

This is it... I do not see messages coming in.
This snippet of code does not throw any error.

from pushraven.

Raudius avatar Raudius commented on July 28, 2024

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() );

from pushraven.

lmgagne avatar lmgagne commented on July 28, 2024

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?

from pushraven.

kubaguzik77 avatar kubaguzik77 commented on July 28, 2024

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.

from pushraven.

Raudius avatar Raudius commented on July 28, 2024

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.

from pushraven.

jeffmwells avatar jeffmwells commented on July 28, 2024

I had this same issue until i removed the .dry_run(true) call.

from pushraven.

Raudius avatar Raudius commented on July 28, 2024

@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.

from pushraven.

lmgagne avatar lmgagne commented on July 28, 2024

from pushraven.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.