2

I have integrated the Firebase Push Notification..

I received the push notification from my server when my app is in background and when i tap on that didReceiveRemoteNotification methods gets called, But when my app is in foreground(i.e. active) then didReceiveRemoteNotification method is not triggering..

My notification payload from server:

  "data":{  
      "message":"mymsg",
   },
   "notification":{  
      "title":"mytitle",
      "body":"mybody",
      "sound": default,
      "priority": high
   },
   "to":"token"
}

Do I need to add any extra key in notification payload or should I do somenthing in my project target?

Suhas Arvind Patil
  • 1,732
  • 1
  • 19
  • 31

0 Answers0