Skip to content

Commit

Permalink
no group below lollipop
Browse files Browse the repository at this point in the history
  • Loading branch information
Libin Lu committed Jan 2, 2018
1 parent 0fb9d26 commit ea3672c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Examples/simple-fcm-client/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ protected Void doInBackground(Void... params) {
.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"));
Expand Down

0 comments on commit ea3672c

Please sign in to comment.