Closed shreyas-jadhav closed 3 years ago
I found out the issue was because not passing the same client object on the next-firebase-auth
SDK
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
What version of Next.js are you using?
10.1
What version of Node.js are you using?
14.16.0
What browser are you using?
Chrome Dev
What operating system are you using?
Windows
How are you deploying your application?
not deploying
Describe the Bug
I have been folowing the examples with-firebase - https://github.com/vercel/next.js/tree/canary/examples/with-firebase with-firebase-cloud-messaging - https://github.com/vercel/next.js/tree/canary/examples/with-firebase-cloud-messaging
The examples don't provide how to add cloud messaging on an existing project with
with-firebase
. I'm extremely frustrated because there's no way i could run cloud messaging on my project. I'm constantly getting missingappId
error. But when i debugged, i noticed two things when i run thewith-firebase
example:apiKey
,authDomain
,databaseURL
,projectId
. And other variables are not added to the object causing inability to use FCM.Expected Behavior
appId
while using cloud messagingTo Reproduce
Official example
with-firebase
and add the functionality for FCM.