GCM message success but never received on one android apk

30 views
Skip to first unread message

Eric Liango

unread,
Jul 14, 2015, 6:47:23 AM7/14/15
to andro...@googlegroups.com
Hello

By now i have 2 APK using GCM

I use pushwoosh and custom php page for notifications push, on phonegap build APK


APK1 run fine, i could send gcm without any issue, from pushwoosh and from php page

APK2 use same sources and so not same api key / project, it's working fine with pushwoosh, but no way to get gcm notification from others sources like my php page and also others php codes i find on net

here is a sample message, saying all is ok but not :

{"multicast_id":5798693548881151693,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1436870523640611%87b0b174f9fd7ecd"}]}


So i spent whole day on that and no idea what is wrong

I use same apikey in php and in pushwoosh, to same real test device, code works fine on APK1


Eric Liango

unread,
Jul 14, 2015, 7:10:54 AM7/14/15
to andro...@googlegroups.com
here is current code, i have idle mode on false but as this works fine on apk1 i beleive nothing is wrong here :

$fields = array(
                'registration_ids'  => array($xtoks),
                'delay_while_idle:false','dry_run:false',
                'data'              => array( 'message' => $xmess , 'title' => $xtitle, 'key1' =>$test1),
                );
 
$headers = array(
                    'Authorization: key=' . $apiKey,
                    'Content-Type: application/json',
                );

Reply all
Reply to author
Forward
0 new messages