79089442

Date: 2024-10-15 10:11:01
Score: 1
Natty:
Report link

@pragma('vm:entry-point')
Future<void> initPushNotification() async {

<---- other codes --->    

FirebaseMessaging.onBackgroundMessage(_backgroundHandler); //call this and will invoke inside _backgroundHandler when notification received in background

<---- other codes --->

}

Let me know if it works or not, and please upvote!! 😇

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Inquisitive Owl