There is a php code to prepare a bundle for sending notification to firebae :
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
(
'body' => $_GET['body'],
'title' => $_GET['title'],
'vibrate' => 1,
'sound' => 1,
);
$fields = array
(
'registration_ids' => $registrationIds,
'notification' => $msg
);
$headers = array
(
'Authorization: key=' . API_ACCESS_KEY,
'Content-Type: application/json'
);
I want same in java, i did all well and getting response 200 from firebase. but i dont know how to get registration-id . As done in php like :
$registrationIds = array( $_GET['id'] );
Please help me to find out the registration-id.