Android Question App compat with firebase notification background crash, how to fix it?

XorAndOr

Active Member
Licensed User
Longtime User
Hi all forum b4x

I'm using the appcompat-menu-with-toolbar and firebase messagging receiver by code erel examples.
Using them separately all works well.
But if the app is in the background and there is a message and I click on the icon notification,
the app crashes.

If the app is open all works well.

It indicates that ACMenuItem object is not initialized but I do not know how to fix it

P.S All the code is copied from example, app-menu and firebase messagging.

My code is only two calls CallSubD elayed from service to main.

Thanks

(sorry my english)
 

Attachments

  • error.jpg
    378.2 KB · Views: 208

XorAndOr

Active Member
Licensed User
Longtime User
Please post

- The Complete error message AS TEXT (no Picture)
- A sample project which shows the problem.

Thanks DonManfred. After the app start, press back button phone and send push message. I use b4J for send
 

Attachments

  • Test-App-Mess.zip
    14.4 KB · Views: 136
  • error.txt
    2.1 KB · Views: 200
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…