gg-innovative / larafirebase

MIT License
21 stars 5 forks source link

Tokens to delete or modify #9

Closed beard7 closed 3 weeks ago

beard7 commented 3 weeks ago

Hi,

I'm migrating to this package from Laravel-FCM and so far so good. The only thing I need to figure out is how to hadle invalid tokens.

Using Laravel-FCM's FCM facade it's possible to call $response->tokensToDelete() and $response->tokensToModify() if the notification fails. Is there any equivalent when using larafirebase?

Also, it may be worth noting that when providing an additonal data array you should only use strings: anything else will result in a bad response.

Thanks

beard7 commented 3 weeks ago

Ignore that. The response codes essentially provide the answers.