Phpandroid
For a GCM issue, send the message to all mobile devices:
Php:
$resultcoment = mysql_query("SELECT * FROM notificaciones");while ($row = mysql_fetch_array($resultcoment)){$result = '"' . $row['regId'] . '", ';//print_r($result);$registrationIDs = array($result);}$message = $_POST['message'];$fields = array( 'registration_ids' => $registrationIDs, 'data' => array( "message" => $message ), );
Results:
"Apa91bhmihsncsg_yvhyzmprrxmw-e_ Iy7bpa9bo934n67afw8hxjhzvm1mnhrpartn6xbkxvjz9t9yfh9qni0zm5b9cpgxdhrkhystxyrwtrld02lq-v_e4zwkigghqt4bph_ Zlnggaau6hwo8ny8mm2_d7glekwckkzdnhwfo5hxghwf4gbzm "," Apa91bhmihsncsg_yvhyzmprrxmw-e_ Iy7bpa9bo934n67afw8hxjhzvm1mnhrpartn6xbkxvjz9t9yfh9qni0zm5b9cpgxdhrkhystxyrwtrld02lq-v_e4zwkigghqt4bph_ Zlnggaau6hwo8ny8mm2_d7glekwckkzdnhwfo5hxghwf4gbzm "," apa91belwwgutnoi3yrrunj_ Bbaacdc4pascb3lxcfwqm9ralqe0hc0c1xvf-eir7ilyflbemdjnmpy-503fqzopajjt514zo1j86uhuobhlu79pktvzjmxibavoiucasky__ JVTBQALVMZ8NJTZZRG81TF1-SVTJW "," apa91belwwgutnoi3yrrunj_ Bbaacdc4pascb3lxcfwqm9ralqe0hc0c1xvf-eir7ilyflbemdjnmpy-503fqzopajjt514zo1j86uhuobhlu79pktvzjmxibavoiucasky__ Jvtbqalvmz8njtzzrg81tf1-svtjw ", {" multicast_id ": 8410297698153738741," Success ": 0," failure ": 1," Canonical_ids ": 0," Results ": [{" Error ":" Invalidregistration "}]}
How could that be?