pushwoosh-react-native-plugin 6.1.18 → 6.1.20

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushwoosh-react-native-plugin",
3
- "version": "6.1.18",
3
+ "version": "6.1.20",
4
4
  "description": "This plugin allows you to send and receive push notifications. Powered by Pushwoosh (www.pushwoosh.com).",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "pushwoosh-react-native-plugin"
3
- s.version = "6.1.18"
3
+ s.version = "6.1.20"
4
4
  s.summary = "React Native Pushwoosh Push Notifications module"
5
5
  s.requires_arc = true
6
6
  s.author = 'Pushwoosh'
@@ -37,7 +37,7 @@ android {
37
37
  }
38
38
 
39
39
  ext {
40
- pushwoosh = "6.6.7"
40
+ pushwoosh = "6.6.10"
41
41
  }
42
42
 
43
43
  dependencies {
@@ -196,7 +196,7 @@ public final class ConversionUtil {
196
196
  .put("title", message.getTitle())
197
197
  .put("imageUrl", message.getImageUrl())
198
198
  .put("message",message.getMessage())
199
- .put("sendDate",message.getSendDate().toString())
199
+ .put("sendDate",message.getISO8601SendDate())
200
200
  .put("type", message.getType().getCode())
201
201
  .put("bannerUrl", message.getBannerUrl())
202
202
  .put("isRead",message.isRead())
@@ -114,5 +114,10 @@ typedef NS_ENUM(NSUInteger, PWRichMediaSource) {
114
114
  */
115
115
  - (void)presentRichMedia:(PWRichMedia *)richMedia;
116
116
 
117
+ /**
118
+ Close toast view after time interval in seconds
119
+ */
120
+ - (void)closeToastViewAfter:(NSTimeInterval)interval;
121
+
117
122
  @end
118
123
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  #endif
20
20
 
21
- #define PUSHWOOSH_VERSION @"6.4.8"
21
+ #define PUSHWOOSH_VERSION @"6.4.11"
22
22
 
23
23
 
24
24
  @class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
@@ -325,9 +325,7 @@ RCT_EXPORT_METHOD(performAction:(NSString*)code) {
325
325
 
326
326
  - (NSString*)dateToString:(NSDate*)date {
327
327
  NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
328
- [formatter setFormatterBehavior:NSDateFormatterBehaviorDefault];
329
- [formatter setDateStyle:NSDateFormatterFullStyle];
330
- [formatter setTimeStyle:NSDateFormatterMediumStyle];
328
+ [formatter setDateFormat:@"yyyy-MM-dd'T'H:mm:ssZ"];
331
329
  return [formatter stringFromDate:date];
332
330
  }
333
331
 
Binary file