8000 Move app focus info to "App focus" section (#118) · Dottenpixel/quickstart-js@605223e · GitHub
[go: up one dir, main page]

Skip to content

Commit 605223e

Browse files
Move app focus info to "App focus" section (firebase#118)
* Move app focus info to "App focus" section * Delete a space before a comma * Highlight filenames
1 parent 3eb38cc commit 605223e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

messaging/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ curl -X POST -H "Authorization: key=YOUR-SERVER-KEY" -H "Content-Type: applicati
8787
}' "https://fcm.googleapis.com/fcm/send"
8888
```
8989

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-
9590
### 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+
9696
The browser gives your app focus when both:
9797

9898
1. Your app is running in the currently selected browser tab.

0 commit comments

Comments
 (0)
0