From 9f21de8d9e5063288b451d191c0eb8839667f2e5 Mon Sep 17 00:00:00 2001 From: Neerhaj N Joshi Date: Mon, 9 Jan 2023 11:29:15 +0530 Subject: [PATCH] Release v6.53.0 --- .gitattributes | 1 + .npmignore | 1 + PushIOManager/PushIOManager.podspec | 2 +- README.md | 12 ++++++++++++ framework/PushIOManager.podspec | 2 +- ios/NSArray+PIOConvert.m | 1 + package.json | 2 +- 7 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .gitattributes create mode 100644 .npmignore diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d42ff18 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.pbxproj -text diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..eed7e79 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +sample \ No newline at end of file diff --git a/PushIOManager/PushIOManager.podspec b/PushIOManager/PushIOManager.podspec index 62e2522..89dfff2 100644 --- a/PushIOManager/PushIOManager.podspec +++ b/PushIOManager/PushIOManager.podspec @@ -1,5 +1,5 @@ Pod::Spec.new do |s| - s.version = "6.51.0" + s.version = "6.53.0" s.name = "PushIOManager" s.summary = "Responsys iOS SDK" s.documentation_url = "" diff --git a/README.md b/README.md index 08f1252..c96bedf 100644 --- a/README.md +++ b/README.md @@ -354,9 +354,21 @@ These below steps are required for iOS In-App Messages. ### Message Center - Get the Message Center messages list using, +``` +Each Message Center message now supports an additional property called custom key-value pairs, it is a variable sized object with key value pairs and can be accessed like any other property of that message. + +``` ```javascript PushIOManager.fetchMessagesForMessageCenter(messageCenterName, (error, response) => { + if(error == null) { + for(message of response.messages){ + console.log(message.messageID) + console.log(message.message) + console.log(message.customKeyValuePairs) + + } + } }); ``` diff --git a/framework/PushIOManager.podspec b/framework/PushIOManager.podspec index a3c496d..d92f3df 100755 --- a/framework/PushIOManager.podspec +++ b/framework/PushIOManager.podspec @@ -1,5 +1,5 @@ Pod::Spec.new do |s| - s.version = "6.51.0" + s.version = "6.53.0" s.name = "PushIOManager" s.summary = "Responsys iOS SDK" s.documentation_url = "" diff --git a/ios/NSArray+PIOConvert.m b/ios/NSArray+PIOConvert.m index 95a092c..c4d132e 100644 --- a/ios/NSArray+PIOConvert.m +++ b/ios/NSArray+PIOConvert.m @@ -24,6 +24,7 @@ - (NSArray *)messageDictionary { dictionary[@"richMessageURL"] = message.richMessageURL; dictionary[@"sentTimestamp"] = [self dateToString:message.sentTimestamp]; dictionary[@"expiryTimestamp"] = [self dateToString:message.expiryTimestamp]; + dictionary[@"customKeyValuePairs"] = message.customKeyValuePairs; [messages addObject:dictionary]; } diff --git a/package.json b/package.json index c7debd5..379624a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oracle/react-native-pushiomanager", - "version": "6.52.2", + "version": "6.53.0", "description": "React Native Module for Responsys Mobile SDK", "main": "index.js", "repository": {