-
Notifications
You must be signed in to change notification settings - Fork 4k
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
firebase_messaging 5.1.5 - When using onBackgroundMessage, i get Exception: Attempt to invoke virtual method 'android.app.Application android.app.Activity.getApplication()' on a null object reference #160
Comments
Duplicate of #145 |
i managed to get to a point where i dont get the error, for some reason when i removed flutter_downloader: ^1.1.7 from pubspec.ymal (update to ^1.1.7 did not helped) but when i put the app in the background and i am getting a push notification, the onBackgroundMessage handler is not invoke can some please explain (due to no documentation), when does the onBackgroundMessage handler supposed to be fire ? |
@YonatanAmitzur for example: format it as code: |
I'm using Flutter and I'm looking at the "[ZeroHung]zrhung_get_config: Get config failed for wp[0x0008]" that @YonatanAmitzur is having too at the start of the error log, same to other people and is nice to notice that the device used has the ID: COR L29 that's an Honor Play phone and the device that I'm having issues with has the ID: SNE LX3 and is a Huawei Mate 20. The issues look like is device related to this Honor/Huawei because of other people with similar devices having this issue. |
@badf007 can confirm that for STF L09 aka Honor9. |
i followed the instractions from the section "Optionally handle background messages" on
https://pub.dev/packages/firebase_messaging/versions/5.1.5
When using onBackgroundMessage, i get Exception: "Attempt to invoke virtual method 'android.app.Application android.app.Activity.getApplication()' on a null object reference"
my stack trace:
The text was updated successfully, but these errors were encountered: