You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
I'm working on just a small prototype app and I want to display the FCM value on the home page of my app. For some reason to get the value to sync up in my service, I had to include NgZone. Why did I need to do that and is there something wrong with the project setup that I had to do that?
This is an Angular thing. Your AppComponent was unaware that any changes had occurred since the push notification's callback is run outside the Angular context.
By calling ngZone.run() you're letting your component/context know that some changes might have occurred so it can check then update the view if necessary.
I'm working on just a small prototype app and I want to display the FCM value on the home page of my app. For some reason to get the value to sync up in my service, I had to include NgZone. Why did I need to do that and is there something wrong with the project setup that I had to do that?
Here is my repo: https://github.com/aquinn637/FireBaseTest2
Here is a code snippet:
The text was updated successfully, but these errors were encountered: