Note that there are some explanatory texts on larger screens.

plurals
  1. POrequire php code for sending push notification on android devices using ACS
    primarykey
    data
    text
    <p>I want to send the push notifications on android devices using php, I am using ACS( Appcelerator cloud Services ) for that. here is my code, if anyone found any solution then please share it.</p> <pre><code>$tmp_fname = "cookie.txt"; $curl_handle = curl_init('https://api.cloud.appcelerator.com/v1/users /login.json?key=uGDhfoFYdIwwyCKQMzKlSuNIPxl3CBSd'); curl_setopt($curl_handle, CURLOPT_COOKIEJAR, $tmp_fname); curl_setopt($curl_handle, CURLOPT_POST, 1); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_handle, CURLOPT_COOKIEFILE, $tmp_fname); $post_array = array('login' =&gt; 'abs', 'password' =&gt; '123456'); curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $post_array); $output = curl_exec($curl_handle); //$session = json_decode($output); print_r($output); $json = '{"badge": 1,"sound": "default","alert" : "Abdul Sattar Testing"}'; $Curl_Session2 = curl_init('https://api.cloud.appcelerator.com/v1/push_notification/notify.json?key=uGDhfoFYdIwwyCKQMzKlSuNIPxl3CBSd&amp;to_ids=ND1TQ9BM8TW4GYASMP2MJ84'); curl_setopt($Curl_Session2, CURLOPT_COOKIEFILE, "$tmp_fname"); curl_setopt($Curl_Session2, CURLOPT_COOKIEJAR, "$tmp_fname"); curl_setopt($Curl_Session2, CURLOPT_POST, 1); curl_setopt($Curl_Session2, CURLOPT_RETURNTRANSFER, true); curl_setopt($Curl_Session2, CURLOPT_POSTFIELDS, "channel=friend_request&amp;payload=" . $json); curl_setopt($Curl_Session2, CURLOPT_FOLLOWLOCATION, 1); $res2 = curl_exec($Curl_Session2); $response = curl_getinfo($Curl_Session2); print_r($res2); echo '&lt;br /&gt;&lt;br /&gt;'; print_r($response); curl_close($Curl_Session2); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload