@imatis/react-native-notifications 4.1.2-imatis.15 → 4.1.2-imatis.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,7 +186,8 @@ public class PushNotification implements IPushNotification {
186
186
  .setContentIntent(intent)
187
187
  .setDefaults(Notification.DEFAULT_VIBRATE)
188
188
  .setAutoCancel(true)
189
- .setPriority(Notification.PRIORITY_HIGH);
189
+ .setPriority(Notification.PRIORITY_HIGH)
190
+ .setOngoing(mNotificationProps.getOngoing());
190
191
 
191
192
  if (soundUri != null) {
192
193
  notification.setSound(soundUri);
@@ -54,6 +54,10 @@ public class PushNotificationProps {
54
54
  return 0.0;
55
55
  }
56
56
 
57
+ public Boolean getOngoing() {
58
+ return mBundle.getBoolean("ongoing");
59
+ }
60
+
57
61
  @Override
58
62
  public String toString() {
59
63
  StringBuilder sb = new StringBuilder(1024);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imatis/react-native-notifications",
3
- "version": "4.1.2-imatis.15",
3
+ "version": "4.1.2-imatis.16",
4
4
  "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android",
5
5
  "author": "Lidan Hifi <lidan.hifi@gmail.com>",
6
6
  "license": "MIT",