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
c135ce37
Commit
c135ce37
authored
Sep 14, 2016
by
Libin Lu
Committed by
GitHub
Sep 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
81eb2bab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+3
-3
No files found.
README.md
View file @
c135ce37
...
@@ -232,12 +232,12 @@ class App extends Component {
...
@@ -232,12 +232,12 @@ class App extends Component {
number
:
10
,
// Android only
number
:
10
,
// Android only
ticker
:
"
My Notification Ticker
"
,
// Android only
ticker
:
"
My Notification Ticker
"
,
// Android only
auto_cancel
:
true
,
// Android only (default true)
auto_cancel
:
true
,
// Android only (default true)
large
I
con
:
"
ic_launcher
"
,
// Android only
large
_i
con
:
"
ic_launcher
"
,
// Android only
icon
:
"
ic_notification
"
,
// as FCM payload
icon
:
"
ic_notification
"
,
// as FCM payload
big_text
:
"
Show when notification is expanded
"
,
// Android only
big_text
:
"
Show when notification is expanded
"
,
// Android only
sub_text
:
"
This is a subText
"
,
// Android only
sub_text
:
"
This is a subText
"
,
// Android only
color
:
"
red
"
,
// Android only
color
:
"
red
"
,
// Android only
vibrate
:
300
,
// Android only default: 300, no vibration i
s
you pass null
vibrate
:
300
,
// Android only default: 300, no vibration i
f
you pass null
tag
:
'
some_tag
'
,
// Android only
tag
:
'
some_tag
'
,
// Android only
group
:
"
group
"
,
// Android only
group
:
"
group
"
,
// Android only
my_custom_data
:
'
my_custom_field_value
'
,
// extra data you want to throw
my_custom_data
:
'
my_custom_field_value
'
,
// extra data you want to throw
...
@@ -245,7 +245,7 @@ class App extends Component {
...
@@ -245,7 +245,7 @@ class App extends Component {
FCM
.
scheduleLocalNotification
({
FCM
.
scheduleLocalNotification
({
fire_date
:
new
Date
(),
fire_date
:
new
Date
(),
id
:
"
UNIQ_ID_STRING
"
,
//REQUIRED! this is what you use to lookup and delete notification
id
:
"
UNIQ_ID_STRING
"
,
//REQUIRED! this is what you use to lookup and delete notification
. In android notification with same ID will override each other
body
:
"
from future past
"
,
body
:
"
from future past
"
,
repeat_interval
:
"
week
"
//day, hour
repeat_interval
:
"
week
"
//day, hour
})
})
...
...
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