Closed clfaulkner closed 5 years ago
Could you postethe content of the error object that is being logged?
I don't remember if I said thank you, so ... Thank You. 😊
On Mon, Jan 14, 2019 at 12:37 PM Nicolas Garnier notifications@github.com wrote:
Were you doing the browser on Chrome? Some other browsers do not support Firebase messaging because they do not support firebase push notifications. You must add the following code to check this:
try { this.messaging = firebase.messaging(); } catch(e) { if (e.code === 'messaging/unsupported-browser') { console.warn('This Browser does not suport FCM. Notifications won\'t be available.', e); } else { throw e; } }
I'll add this to the codelab now.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/firebase/friendlychat-web/issues/355#issuecomment-454152586, or mute the thread https://github.com/notifications/unsubscribe-auth/AjEu8eIgXizFSGR4tt4jP3XJLkIWqqlxks5vDOqkgaJpZM4YzfPi .
Error message: Unable to get messaging device token: Object (anonymous) @ main.js:180
Here is the code I pasted:
Please let me know if there is any other info you need.