1

how to handle it in android fcm please share any suitable solution i want to resolve issue of fcm on background and on foreground

$payload = [
  'to' => $user->device_token,
  'collapse_key'      =>'test message',
  'data' => [
    'title' => '',
    'message' => $push_message
  ],
  'notiification' => [
    'title' => '',
    'message' => $push_message
  ]
];

How to handle it in android fcm please share any suitable solution i want to resolve issue of fcm on background and on foreground ?

Mario Petrovic
  • 7,500
  • 14
  • 42
  • 62
Asif Mehmood
  • 141
  • 1
  • 14
  • no its not issue of formating i want to handle issue to sending notification from fcm but some samsung devices not recive notification when app is no kill state like **samsung S8 and S8 plus** – Asif Mehmood Feb 07 '20 at 04:58
  • Dont know how my comment ended up here. That was for my edit of your question. – Mario Petrovic Feb 07 '20 at 17:43

1 Answers1

0
$payload = [
                        'to' => $user->device_token,
                        'collapse_key'      =>'test message',
                        'data' => [
                        'title' => '',
                        'message' => $push_message
                        ],
                        'notiification' => [
                        'title' => '',
                        'message' => $push_message
                    ]
                ];

how to handle it in android fcm please share any suitable solution i want to reslove issue of fcm on backround and on foreground

Asif Mehmood
  • 141
  • 1
  • 14