Android Question Firebase Messaging Not Responding

Sofian

Member
Hi, I have problem with fm. If apps state open, fm notif show properly not problem, bu if my apps close (exit application) and I send fm push message it make my apps unable to show properly, blank screen appear if open apps.
On coding log it show (if working) :
fm2:
** Receiver (firebasemessaging) OnReceive **
** Service (firebasemessaging) Start **

and if not working it only :
fm2:
** Receiver (firebasemessaging) OnReceive **
and apps freeze with blank screen
 

asales

Expert
Licensed User
Longtime User
- This is a B4XPages project?
- Did you sent the notification using the Firebase Console or the B4J App?
 
Upvote 0

Sofian

Member
yes its b4xpages. I found the problem , manifest target sdk = 31 (apps freeze when fb messaging receive)
if target sdk=30 (normal receive fb mssg)
I send notif from B4J app get from this forum sample.
 
Upvote 0

Sofian

Member
it's not chash..only freeze, if I open apps, its show only black screen, not open mainpages an log file is :
fm:
** Receiver (firebasemessaging) OnReceive **
 
Upvote 0

Sofian

Member
I try to make new project only to show firebase messaging. Same problem if set to target SDK=31 My apps freeze. here I send sample project. please help.
Project not include my google-services.json
 

Attachments

  • Project.zip
    14.1 KB · Views: 145
Upvote 0

Sofian

Member
on normal state, my apps open mainpage like this (pict 1.jpeg), then I send FM and it receive normaly (pict 2.jpeg). If Apps state exit (Close), I send FM, not receive like pict 2.jpeg and if I open Apps, I show blank screen (pict 3.jpeg) not open mainpage like pict 1.jpeg. Log not show any error
 

Attachments

  • pict 1.jpeg
    pict 1.jpeg
    17.5 KB · Views: 114
  • pict 2.jpeg
    pict 2.jpeg
    18.4 KB · Views: 117
  • pict 3.jpeg
    pict 3.jpeg
    10.5 KB · Views: 121
Upvote 0
Top