plokko / firebase-php

Php integration of Firebase API (FCM Http v1, RealTime database)
16 stars 9 forks source link

return UnspecifiedErrorException for unknown FCM errors #14

Closed pety-dc closed 2 years ago

pety-dc commented 2 years ago

In some cases responses and status codes may be subject to change. If there is a new type of FCM error, the current version returns the RequestException unchanged, while the response clearly contains the details of FCM error, it just doesn't have it's own dedicated exception class. Return RequestException only if the response doesn't match the expected FCM response structure.