Comments (13)
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.
from pushraven.
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.
from pushraven.
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.
This is it... I do not see messages coming in.
This snippet of code does not throw any error.
from pushraven.
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.
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.
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.
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.
I had this same issue until i removed the .dry_run(true)
call.
from pushraven.
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.
from pushraven.
Related Issues (20)
- Can't receive message on iOS HOT 2
- push() call doesn't send HTTP request if response is not processed properly HOT 1
- Web Push notification HOT 1
- StackOverflowError upon component initialisation HOT 1
- Singleton not thread safe HOT 2
- Allow passing InputStream for service account HOT 6
- Detect OpenFeign, Retrofit or OkHttp on classpath and use those instead HOT 2
- Efficient usage in multi-thread application HOT 4
- AndroidNotification Tag key incorrect HOT 1
- Which version is the latest? HOT 4
- how to use .addAttributeMap(key, map) HOT 4
- push(), getToken() and other http methods fail if behind a proxy HOT 1
- Can't get errors from getErrorMessage() HOT 1
- Issue in sending notification with utf-8 title and body HOT 1
- i have a question to ask HOT 3
- Cannot find putAll method HOT 2
- Target User Segment? HOT 2
- Add custom sound and icon HOT 1
- Maven publication? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pushraven.