'FirebaseError: Messaging: A problem occured while subscribing the user to FCM: SyntaxError: JSON.parse

I am trying to implement web-side Firebase push notifications via AngularFireMessaging. Specifically the problem "FirebaseError: Messaging: A problem occured while subscribing the user to FCM: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data (messaging/token-subscribed-failed)" occurs when I call "getToken()" to get the device token after allowing permissions. This issue only occurs on Firefox, while on Chrome I am able to get the token. Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source