Skip to content

Commit 25e7833

Browse files
authored
Hotfix for iOS production push token type. (#111)
* Hotfix for iOS production push token type. * Changelog updated
1 parent 11fa414 commit 25e7833

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 22.06.4
2+
* Fixed incorrect iOS push token type when passing "Countly.messagingMode.PRODUCTION" as token type.
3+
* Underlying android SDK version is 22.06.2
4+
* Underlying iOS SDK version is 22.06.2
5+
16
## 22.06.3
27
* Fixed a bug in Android SDK that would throw a null pointer exception when calling "CountlyPush.displayNotification " and CountlyPush was not initialized
38
* Updated Underlying android SDK version to 22.06.2

CountlyReactNative.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'CountlyReactNative'
3-
s.version = '22.06.3'
3+
s.version = '22.06.4'
44
s.license = {
55
:type => 'COMMUNITY',
66
:text => <<-LICENSE

android/src/main/java/ly/count/android/sdk/react/CountlyReactNative.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public String toString(){
8181
public class CountlyReactNative extends ReactContextBaseJavaModule implements LifecycleEventListener {
8282

8383
public static final String TAG = "CountlyRNPlugin";
84-
private String COUNTLY_RN_SDK_VERSION_STRING = "22.06.3";
84+
private String COUNTLY_RN_SDK_VERSION_STRING = "22.06.4";
8585
private String COUNTLY_RN_SDK_NAME = "js-rnb-android";
8686

8787
private static final CountlyConfig config = new CountlyConfig();

example/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rm App.js
1111
curl https://raw.githubusercontent.com/Countly/countly-sdk-react-native-bridge/master/example/App.js --output App.js
1212
curl https://raw.githubusercontent.com/Countly/countly-sdk-react-native-bridge/master/example/Example.js --output Example.js
1313

14-
yarn add countly-sdk-react-native-bridge@22.06.3
14+
yarn add countly-sdk-react-native-bridge@22.06.4
1515

1616
cd ./ios
1717
pod install

ios/src/CountlyReactNative.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ @interface CountlyFeedbackWidget ()
2222
+ (CountlyFeedbackWidget *)createWithDictionary:(NSDictionary *)dictionary;
2323
@end
2424

25-
NSString* const kCountlyReactNativeSDKVersion = @"22.06.3";
25+
NSString* const kCountlyReactNativeSDKVersion = @"22.06.4";
2626
NSString* const kCountlyReactNativeSDKName = @"js-rnb-ios";
2727

28+
CLYPushTestMode const CLYPushTestModeProduction = @"CLYPushTestModeProduction";
29+
2830
CountlyConfig* config = nil; // alloc here
2931
NSMutableArray<CLYFeature>* countlyFeatures = nil;
3032
BOOL enablePushNotifications = true;
@@ -219,11 +221,13 @@ - (instancetype)init
219221
config = CountlyConfig.new;
220222
}
221223
config.sendPushTokenAlways = YES;
224+
config.pushTestMode = CLYPushTestModeProduction;
225+
222226
NSString* tokenType = [arguments objectAtIndex:0];
223227
if([tokenType isEqualToString: @"1"]){
224228
config.pushTestMode = CLYPushTestModeDevelopment;
225229
}
226-
else if([tokenType isEqualToString: @"2"] || [tokenType isEqualToString: @"0"]){
230+
else if([tokenType isEqualToString: @"2"]){
227231
config.pushTestMode = CLYPushTestModeTestFlightOrAdHoc;
228232
}
229233

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "countly-sdk-react-native-bridge",
3-
"version": "22.06.3",
3+
"version": "22.06.4",
44
"author": "Countly <hello@count.ly> (https://count.ly/)",
55
"bugs": {
66
"url": "https://github.com/Countly/countly-sdk-react-native-bridge/issues"

0 commit comments

Comments
 (0)