larafirebase icon indicating copy to clipboard operation
larafirebase copied to clipboard

Got undefined

Open jhoanborges opened this issue 2 years ago • 0 comments

TEstes using you code, but sometimes it shows undefined and everything seems normal.

` $deviceTokens = User::whereNotNull('fcm_token')->pluck('fcm_token')->toArray();

    return Larafirebase::withTitle('Test Title')
    ->withBody('Test body')
    ->withImage('https://firebase.google.com/images/social.png')
    ->withIcon('https://seeklogo.com/images/F/firebase-logo-402F407EE0-seeklogo.com.png')
    ->withSound('default')
    ->withClickAction('https://www.google.com')
    ->withPriority('high')
    ->withAdditionalData([
        'color' => '#rrggbb',
        'badge' => 0,
    ])
    ->sendNotification($deviceTokens);`

Screenshot_20220902_155030

jhoanborges avatar Sep 02 '22 20:09 jhoanborges