Kapalı

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 );

}

Beceriler: Android, iPhone, Mobile App Development, PHP, Yazılım Mimarisi

Daha fazlasını gör: 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

İşveren Hakkında:
( 84 değerlendirme ) Ramallah, Palestinian Territory

Proje NO: #15874491

Bu iş için 6 freelancer ortalamada $40 teklif veriyor

sharmarahulraman

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

in %bids___i_period_sub_35% gün içinde88%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(73 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(42 Değerlendirme)
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 Daha Fazla

in %bids___i_period_sub_35% gün içinde21%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(5 Değerlendirme)
3.0
sparkmultiz

A proposal has not yet been provided

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)
2.4
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
imlv

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

in %bids___i_period_sub_35% gün içinde55%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0