File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1+ # 0.7.4
2+
3+ ## Update
4+ * iOS - Fixed an issue where changed to false when unsubscribeText / unsubscribeEmail is empty
5+
6+
17# 0.7.3
28
39## Update
410* support android channel-io 10.0.3
5- * iOS - Fixed an issue where changed to false when unsubscribeText / unsubscribeEmail is empty
611
712# 0.7.2
813
Original file line number Diff line number Diff line change @@ -66,10 +66,16 @@ + (BootConfig *)bootConfig:(id)json {
6666 ? [RCTConvert BOOL: json[KEY_HIDE_POPUP]] : [RCTConvert BOOL: json[KEY_HIDE_DEFAULT_IN_APP_PUSH]];
6767 config.trackDefaultEvent = json[KEY_TRACK_DEFAULT_EVENT] != nil
6868 ? [RCTConvert BOOL: json[KEY_TRACK_DEFAULT_EVENT]] : [RCTConvert BOOL: json[KEY_ENABLED_TRACK_DEFAULT_EVENT]];
69- config.unsubscribeEmail = [RCTConvert BOOL: json[KEY_UNSUBSCRIBE_EMAIL]];
70- config.unsubscribeTexting = [RCTConvert BOOL: json[KEY_UNSUBSCRIBE_TEXTING]];
7169 config.bubbleOption = [RCTConvert bubbleOption: json[KEY_BUBBLE_OPTION]];
7270
71+ if (json[KEY_UNSUBSCRIBE_EMAIL] != nil ) {
72+ [config setWithUnsubscribeEmail: [RCTConvert BOOL: json[KEY_UNSUBSCRIBE_EMAIL]]];
73+ }
74+
75+ if (json[KEY_UNSUBSCRIBE_TEXTING] != nil ) {
76+ [config setWithUnsubscribeTexting: [RCTConvert BOOL: json[KEY_UNSUBSCRIBE_TEXTING]]];
77+ }
78+
7379 if (json[KEY_LAUNCHER_CONFIG] == nil && json[KEY_CHANNEL_BUTTON_OPTION] != nil ) {
7480 config.channelButtonOption = [RCTConvert channelButtonOption: json[KEY_CHANNEL_BUTTON_OPTION]];
7581 } else if (json[KEY_LAUNCHER_CONFIG] != nil && json[KEY_CHANNEL_BUTTON_OPTION] == nil ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-channel-plugin" ,
3- "version" : " 0.7.3 " ,
3+ "version" : " 0.7.4 " ,
44 "description" : " react native module for channel io" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments