brozot / Laravel-FCM

Laravel-FCM is an easy to use package working with both Laravel and Lumen for sending push notification with Firebase Cloud Messaging (FCM).
MIT License
888 stars 397 forks source link

Find exact error code or error message in responce #212

Open aruljames93 opened 3 years ago

aruljames93 commented 3 years ago

Hi, In FCM push notification i'm getting numberSuccess() or numberFailure() BOOLEAN values (0,1). But i need to get exact error exception from return response. Is there any way to get exact error message from this FCM Package ????

$downstreamResponse->numberSuccess(); $downstreamResponse->numberFailure(); $downstreamResponse->numberModification(); $downstreamResponse->tokensToDelete(); $downstreamResponse->tokensToModify(); $downstreamResponse->tokensToRetry(); $downstreamResponse->tokensWithError();

Screenshot from 2021-04-19 14-27-04