Completed

Push notifications android 1st, then iOS

i need help.

i have the server side PHP sample code, just need to get things right to get it to work. currently i am getting this error from the server sending the msg, Error 401: Invalid (legacy) Server-key delivered or Sender is not authorized to perform request.

can add you to firebase to see the information

can give you my token to test.

PHP sample code:

$notification = array

(

'title' => $receiverName. ': A new message for you',

'body' => $message,

'sound' => 'default'

);

$data = array

(

'message' => $message,

'click_action' => "PUSH_INTENT"

);

$fields = array

(

'registration_ids' => $registrationIds,

'notification' => $notification,

'data' => $data,

'priority' => 'normal'

);

$headers = array

(

'Authorization: key='.API_ACCESS_KEY,

'Content-Type: application/json'

);

$ch = curl_init();

curl_setopt( $ch,CURLOPT_URL, '[login to view URL]' );

curl_setopt( $ch,CURLOPT_POST, true );

curl_setopt( $ch,CURLOPT_HTTPHEADER, $headers );

curl_setopt( $ch,CURLOPT_RETURNTRANSFER, false); //true orig ); returns err info if false

curl_setopt( $ch,CURLOPT_SSL_VERIFYPEER, false );

curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $fields ) );

$result = curl_exec($ch );

curl_close( $ch );

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

See more: iphone push notifications android, push notifications titanium android, android local push notifications, push notification service, what is push notification how it works, ios push notification, android push notification, android vs ios notifications, types of push notifications in android, ios vs android push notifications, how push notification works in ios, location aware push notifications android, native push notifications android, rss push notifications android, push notifications android, paypal push notifications android, phonegap push notifications android, appoxee push notifications android app, geolocation push notifications android, geo based push notifications android

About the Employer:
( 19 reviews ) west des moines, United States

Project ID: #17893158

Awarded to:

deming723

Hello, I can definitely build your app and have done a lot of functional work in this area. I have more than 8 years experience building iOS and Android apps. I’d like to learn more about your project details so I c More

$25 USD in 1 day
(44 Reviews)
7.0

4 freelancers are bidding on average $81 for this job

CodeShood

Hello, I am Software Engineer since 2013, I have completed more than 30+ successful mobile apps of iOS and Android. I am an ambitious, hardworking and challenging with high technical skills. I have a technical tea More

$250 USD in 1 day
(33 Reviews)
5.7
WhollySoftware

Hello, Greetings from Wholly Software! I have company that’s name Wholly Software. We are Working Website Designing, Custom Software Development , Backend development(Core PHP, Laravel, Codeingnator, Node.js), Mobile More

$25 USD in 1 day
(14 Reviews)
5.1
Apatelanalyst

Can solve this and get it to you within 5 hours guaranteed. Also, I am USA based so easy to get ahold of

$25 USD in 1 day
(0 Reviews)
0.0