Force $registrationIds to be non-associative.
Force $registrationIds to be non-associative.

Associative arrays, or those that don't have sequential keys starting at 0, will encode as a JSON object instead of a JSON array when passed through json_encode(), causing problems for the GCM service.
lkorth/php-gcm,lkorth/php-gcm