Erlang Parasu

Results 56 comments of Erlang Parasu

maybe you can try it for adding ```php var_dump($test); return []; ``` what is the result?

please update to latest version then maybe you can try it for adding ```php $fcm_response = fcm()-> ... ; var_dump($fcm_response); return []; ``` what is the result?

```php $fcm_token = User::select('fcm_token') ->where('id', $request->partner_id) ->first() ->fcm_token; $respuesta = fcm() ->to([$fcm_token]) // ... ```

@olkotz have you added **.env** `FCM_SERVER_KEY=yourkeyhere` then execute `php artisan config:cache` ?

maybe try to add logger for each chunk.. some thing like `var_dump($fcm_response);` or `logger('fcm_response', [$fcm_response]);`

Ref: https://firebase.google.com/docs/cloud-messaging/android/send-image

i think we can not send image because currently we are using legacy Firebase API (https://firebase.google.com/docs/cloud-messaging/http-server-ref)

if you need to display the response, please use variable to get the response after calling send method, Eg.: ```php public function sendnotification() { $registrationIds = Fcm_info::select(['token']) ->pluck('token') ->toArray(); $responseArr...

> The default timeout is four weeks, unless the time_to_live flag is set. https://firebase.google.com/docs/cloud-messaging/concept-options#lifetime may be need to set time_to_live