File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,12 @@ curl -X POST -H "Authorization: key=YOUR-SERVER-KEY" -H "Content-Type: applicati
87
87
}' "https://fcm.googleapis.com/fcm/send"
88
88
```
89
89
90
- - When the app has the browser focus , the received message is handled through
91
- the ` onMessage ` callback in index.html. When the app does not have browser
92
- focus then the ` setBackgroundMessageHandler ` callback in firebase-messaging-sw.js
93
- is where the received message is handled.
94
-
95
90
### App focus
91
+ When the app has the browser focus, the received message is handled through
92
+ the ` onMessage ` callback in ` index.html ` . When the app does not have browser
93
+ focus then the ` setBackgroundMessageHandler ` callback in ` firebase-messaging-sw.js `
94
+ is where the received message is handled.
95
+
96
96
The browser gives your app focus when both:
97
97
98
98
1 . Your app is running in the currently selected browser tab.
You can’t perform that action at this time.
0 commit comments