Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-fcm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
react-native-fcm
Commits
e44d0657
Commit
e44d0657
authored
Apr 26, 2018
by
Libin Lu
Committed by
GitHub
Apr 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #921 from delvedor/add-qa
Updated Q&A
parents
f30d940e
ef7b7bd7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
README.md
README.md
+8
-3
No files found.
README.md
View file @
e44d0657
...
@@ -554,6 +554,12 @@ Issues and pull requests are welcome. Let's make this thing better!
...
@@ -554,6 +554,12 @@ Issues and pull requests are welcome. Let's make this thing better!
#### Credits
#### Credits
Local notification implementation is inspired by react-native-push-notification by zo0r
Local notification implementation is inspired by react-native-push-notification by zo0r
#### I get the notifications in the logs, but the native prompt does not show up
Did you remember to ask the user permissions? ;)
```
js
await FCM.requestPermissions({ badge: false, sound: true, alert: true })
```
## Sending remote notification
## Sending remote notification
How to send a push notification from your server? You should `POST` to this endpoint:
How to send a push notification from your server? You should `POST` to this endpoint:
...
@@ -614,4 +620,3 @@ fetch('https://fcm.googleapis.com/fcm/send', {
...
@@ -614,4 +620,3 @@ fetch('https://fcm.googleapis.com/fcm/send', {
})
})
})
})
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment