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
ea3672c3
Commit
ea3672c3
authored
Jan 02, 2018
by
Libin Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no group below lollipop
parent
0fb9d264
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Examples/simple-fcm-client/app/App.js
Examples/simple-fcm-client/app/App.js
+1
-0
android/src/main/java/com/evollu/react/fcm/SendNotificationTask.java
.../main/java/com/evollu/react/fcm/SendNotificationTask.java
+4
-1
No files found.
Examples/simple-fcm-client/app/App.js
View file @
ea3672c3
...
...
@@ -67,6 +67,7 @@ export default class App extends Component {
sound
:
"
bell.mp3
"
,
large_icon
:
"
https://image.freepik.com/free-icon/small-boy-cartoon_318-38077.jpg
"
,
show_in_foreground
:
true
,
group
:
'
test
'
,
number
:
10
});
}
...
...
android/src/main/java/com/evollu/react/fcm/SendNotificationTask.java
View file @
ea3672c3
...
...
@@ -70,9 +70,12 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> {
.
setAutoCancel
(
bundle
.
getBoolean
(
"auto_cancel"
,
true
))
.
setNumber
((
int
)
bundle
.
getDouble
(
"number"
))
.
setSubText
(
bundle
.
getString
(
"sub_text"
))
.
setGroup
(
bundle
.
getString
(
"group"
))
.
setVibrate
(
new
long
[]{
0
,
DEFAULT_VIBRATION
})
.
setExtras
(
bundle
.
getBundle
(
"data"
));
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
LOLLIPOP
){
notification
.
setGroup
(
bundle
.
getString
(
"group"
));
}
if
(
bundle
.
containsKey
(
"ongoing"
)
&&
bundle
.
getBoolean
(
"ongoing"
))
{
notification
.
setOngoing
(
bundle
.
getBoolean
(
"ongoing"
));
...
...
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