Modify firebase push notification in android when app is in background -


i receiving push notification when app in background, couldn't find triggered when app receive push . want change notification body , example if notification message "hi" want show user "hi user".

public class myfcmlistenerservice extends firebasemessagingservice {      @override     public void onmessagereceived(remotemessage message) {         //nothing triggered here when app in background     }  } 

$fields = array( 'registration_ids' => $reg_id , 'priority' => "high", 'data' => array(******));     curl_setopt($ch, curlopt_postfields, json_encode($fields)); 

i have faced same problem. removed notification key values php firebase service. issues got resolved. using registration_ids, priority, data


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -