Open chandanjha opened 3 years ago
Same thing, error in:
protected function addRequestHeaders() { return [ 'Authorization' => 'key=' . $this->config['apiKey'], 'Content-Type:' =>'application/json' ]; }
Solve:
protected function addRequestHeaders() { return [ 'Authorization' => 'key=' . $this->config['apiKey'], 'Content-Type' =>'application/json' ]; }
Yes this is the solution to this error. You should find this in
vendor\edujugon\push-notification\src\Gcm.php
Any ideas @toyomsk @moxerox as to why this issue is being generated and what is the culprit behind it?
is this problem solved ?
@Humza01 it is because of the content type index, it should be "Content-Type", while in the original code it is "Content-Type:". So the problem is with the ending colon.
is this problem solved ?
so no its not fixed yet, but you can manually adjust it and make a PR
Same thing, error in:
protected function addRequestHeaders() { return [ 'Authorization' => 'key=' . $this->config['apiKey'], 'Content-Type:' =>'application/json' ]; }
Solve:
protected function addRequestHeaders() { return [ 'Authorization' => 'key=' . $this->config['apiKey'], 'Content-Type' =>'application/json' ]; }