Commit 478ebbd4 authored by Pewh Gosh's avatar Pewh Gosh Committed by GitHub

Support ongoing notification

Add optional `ongoing` params
parent dd2a0d5d
......@@ -85,6 +85,10 @@ public class FIRLocalMessagingHelper {
.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))
.setExtras(bundle.getBundle("data"));
if (bundle.containsKey("ongoing") || bundle.getBoolean("ongoing")) {
notification.setOngoing(bundle.getBoolean("ongoing"));
}
//priority
String priority = bundle.getString("priority", "");
switch(priority) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment