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
532c95aa
Commit
532c95aa
authored
May 17, 2018
by
Libin Lu
Committed by
GitHub
May 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #941 from mjmasn/fix_notification_grouping
Fix notification grouping
parents
56f8bbc0
3fdb4bc4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
android/src/main/java/com/evollu/react/fcm/SendNotificationTask.java
.../main/java/com/evollu/react/fcm/SendNotificationTask.java
+4
-1
No files found.
android/src/main/java/com/evollu/react/fcm/SendNotificationTask.java
View file @
532c95aa
...
@@ -89,10 +89,13 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> {
...
@@ -89,10 +89,13 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> {
.
setVibrate
(
new
long
[]{
0
,
DEFAULT_VIBRATION
})
.
setVibrate
(
new
long
[]{
0
,
DEFAULT_VIBRATION
})
.
setExtras
(
bundle
.
getBundle
(
"data"
));
.
setExtras
(
bundle
.
getBundle
(
"data"
));
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
LOLLIPOP
){
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
LOLLIPOP
){
String
group
=
bundle
.
getString
(
"group"
);
String
group
=
bundle
.
getString
(
"group"
);
if
(
group
!=
null
)
group
=
URLDecoder
.
decode
(
group
,
"UTF-8"
);
if
(
group
!=
null
)
group
=
URLDecoder
.
decode
(
group
,
"UTF-8"
);
notification
.
setGroup
(
group
);
notification
.
setGroup
(
group
);
if
(
bundle
.
containsKey
(
"groupSummary"
)
&&
bundle
.
getBoolean
(
"groupSummary"
))
{
notification
.
setGroupSummary
(
true
);
}
}
}
if
(
bundle
.
containsKey
(
"ongoing"
)
&&
bundle
.
getBoolean
(
"ongoing"
))
{
if
(
bundle
.
containsKey
(
"ongoing"
)
&&
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