Skip to content

[firebase_messaging] set notification channel id (notification in background Not working) #88

@MahmoodBakhshayesh

Description

@MahmoodBakhshayesh

Describe the bug
the function onResume and onLunch not working on android platform, while they work fine on IOS,
i receive the following message on console instead of printed strings in those functions:

"W/FirebaseMessaging(24847): Missing Default Notification Channel metadata in AndroidManifest. Default value will be used."

onMessage function works fine, the problem is when the app is in background

To Reproduce
try to print something in onResume and onLunch functions

Expected behavior
the functions be called on work fine as they do on IOS

Additional context
my guess is that it has something to do with android notification channel id which should be added in android manifest

when i add that to manifest the message change to :
"Notification Channel set in AndroidManifest.xml has not been created by the app. Default value will be used."

Metadata

Metadata

Assignees

Labels

impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)platform: androidIssues / PRs which are specifically for Android.plugin: messagingtype: documentationImprovements or additions to documentationtype: enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions