-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
java.lang.NullPointerException when notification recieved when app in the foreground #708
Comments
Looks like this bug was introduced by PR #667 @ollm as PR author, are you able to submit a PR to fix this bug? |
Fixed by #709 which is merged and will be published with next release |
Wow, thank you and @rokkreslincom for the quick turnaround on this |
@renemadsen I suggest you install this plugin at the specific commit that includes this fix, then subscribe to this issue to see when it's closed, or even subscribe to the repo as a whole to see when a new update is released. I've installed this in my project using the following: cordova plugin add https://github.com/dpa99c/cordova-plugin-firebasex.git#751ba5a35fe7461731cde6a1ea5fd1b973941572 obviously appending any |
Well, its now been nearly 3 months that the 14.0.0 was released which is broken for Android but works in IOS. So for Android I need either the specific commit OR use the previous 13.0.0 version and of course those both do NOT work in IOS because of issues with the LD_RUN... etc. The set of steps to take in IOS is also pretty much a nightmare. Let me paint a picture of the only set of steps that currently works for IOS if the last one you worked on was Android:
And of course the other way round if you then need to do an Android release. Love your plugin but feel my pain ;-) Could we get an ETA on a next release please? |
This is creating some major issues for me as well, trying to maintain simultaneous Android and iOS releases for my app. Not trying to be negative, just a bit puzzled by the lack of a new version release here. |
The issue is fixed for me by the 14.1 release - I no longer need to juggle the version for Android and iOS. |
Bug report
CHECKLIST
I have read the issue reporting guidelines
I confirm this is a suspected bug or issue that will affect other users
Current behavior:
When app is in the foreground
onMessageReceived
is not triggered.The following line appears in the console output:
I believe the source of the error is the following line (152):
in FirebasePluginMessagingService.java
cordova-plugin-firebasex/src/android/FirebasePluginMessagingService.java
Line 152 in ddbaccc
notification.getImageUrl()
can return null (see: https://firebase.google.com/docs/reference/android/com/google/firebase/messaging/RemoteMessage.Notification#public-uri-getimageurl), but this code doesn't handle that case.Expected behavior:
onMessageRecieved should trigger without error
The text was updated successfully, but these errors were encountered: