Closed

Consultation for Firebase notification for Android/IOS

I have an app which aims to send notifications to IOS/Android users, our target users in future 500K users, taking into consideration that we're using FCM technology on Firebase to send to both apps, and also have a look to the PHP code which is responsible to send [url removed, login to view] need to know if the approach we're using is the right approach in terms of real time notification with no delay. I heard there's a maximum connection of notifications (i.e 1000 notification per once).

What we are expecting is that someone who worked in similar projects of sending thousands of messages at once and receiving in less than 5 sec to all users. I heard there is something else called Topic, if we have something wrong with backend code or something we need to know.

if(count($androidFCMs)){

//Send to android users:

$fields = array (

'registration_ids' => $androidFCMs,

'data' => $content

);

$fields = json_encode ( $fields );

$headers = array (

'Authorization: '.$server_key,

'Content-Type: application/json'

);

$ch = curl_init ();

curl_setopt ( $ch, CURLOPT_URL, $url );

curl_setopt ( $ch, CURLOPT_POST, true );

curl_setopt ( $ch, CURLOPT_HTTPHEADER, $headers );

curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );

curl_setopt ( $ch, CURLOPT_POSTFIELDS, $fields );

$result = curl_exec ( $ch );

if($result === false)

{

//Log error to a log file

$current = file_get_contents($file);

$current .= "\t" . 'CALL API ERROR, FOR ANDROID REQUEST: \n' .curl_error($ch) . "\n";

$msg = str_replace('{ANDROID_TOTAL}', 0, $msg);

$msg = str_replace('{ANDROID_SENT}', 0, $msg);

$msg = str_replace('{ANDROID_FAILED}', 0, $msg);

$msg = str_replace('{ANDROID_PER}', '0%' , $msg);

$current = file_get_contents($file);

$current .= "\n\t" . 'Android API RESPONSE: ' .' NO USERS FOUND. NO API CALLED TO GET A RESPONE!' . "\n-\t-\t-\t-\n";

file_put_contents($file, $current);

}

curl_close ( $ch );

}

if(count($iosFCMs)){

//Send to ios users:

$iosData = [

'activityId' => $content->activityId,

'type' => $content->type,

];

$iosNotification = [

'title' => $content->headline,

'body' => $content->body,

];

$fields = array (

'registration_ids' => $iosFCMs,

'priority' => 'high',

'data' =>$iosData,

'notification' => $iosNotification

);

$fields = json_encode ( $fields );

$headers = array (

'Authorization: '.$server_key,

'Content-Type: application/json'

);

$ch = curl_init ();

curl_setopt ( $ch, CURLOPT_URL, $url );

curl_setopt ( $ch, CURLOPT_POST, true );

curl_setopt ( $ch, CURLOPT_HTTPHEADER, $headers );

curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );

curl_setopt ( $ch, CURLOPT_POSTFIELDS, $fields );

$result = curl_exec ( $ch );

if($result === false)

{

$current = file_get_contents($file);

$current .= "\t" . 'CALL API ERROR, FOR IOS REQUEST: \n' .curl_error($ch) . "\n";

$msg = str_replace('{IOS_TOTAL}', 0, $msg);

$msg = str_replace('{IOS_SENT}', 0, $msg);

$msg = str_replace('{IOS_FAILED}', 0, $msg);

$msg = str_replace('{IOS_PER}', '0%' , $msg);

$current = file_get_contents($file);

$current .= "\t" . 'iOS API RESPONSE: ' .' NO USERS FOUND. NO API CALLED TO GET A RESPONE!' . "\n-\t-\t-\t-\n";

file_put_contents($file, $current);

}

curl_close ( $ch );

}

Skills: Android, iPhone, Mobile App Development, PHP, Software Architecture

See more: fcm console, firebase notifications android, firebase cloud messaging pricing, firebase push notification android example, fcm ios, firebase send notification from server, firebase cloud messaging server, firebase cloud messaging android tutorial, android ios ecommerce app, Android, iOS Mobile app, clone android ios mobile app, android / iOS app for integration with firebase, backend ios, android & ios mobile app for order management convenience and ease of use is a must elegant design is a must dedicated experienc, write android ios native app time, app backend ios android, php backend ios app, ios app test log, android ios inventory app, android ios survey app

About the Employer:
( 84 reviews ) Ramallah, Palestinian Territory

Project ID: #15874491

6 freelancers are bidding on average $40 for this job

sharmarahulraman

Hello I am expert in Firebase notification integration and done this already. Relevant Skills and Experience fireabase php Proposed Milestones $88 USD - work

$88 USD in 2 days
(73 Reviews)
6.0
eclairios

Dear Sir, I have read your project description. I have done similar projects in past and I can do your work. Please come to private chat to discuss in detail. Relevant Skills and Experience I am a Professional Android More

$25 USD in 1 day
(42 Reviews)
5.0
technofizi

Hi, Ongoing through the requirement you would like to use Firebase to setup push notification for both android and iOS app. As we have got expertise with Firebase so we can do this task for you. Relevant Skills and E More

$21 USD in 4 days
(5 Reviews)
3.0
sparkmultiz

A proposal has not yet been provided

$25 USD in 1 day
(5 Reviews)
2.4
$25 USD in 1 day
(0 Reviews)
0.0
imlv

i know real time notifications send using firebase , Mqtt and can start work asap

$55 USD in 2 days
(0 Reviews)
0.0