File tree 5 files changed +10
-13
lines changed
android/src/main/res/values
5 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ This document lets you know what has changed in the React Native module. For cha
5
5
- [ Android Changelog] ( https://github.com/apptentive/apptentive-android/blob/master/CHANGELOG.md )
6
6
- [ iOS Changelog] ( https://github.com/apptentive/apptentive-ios/blob/master/CHANGELOG.md )
7
7
8
+ # 2018-07-26 - v5.1.3
9
+
10
+ - Fix check for registered status on iOS
11
+
8
12
# 2018-07-26 - v5.1.2
9
13
10
14
- Fix missing dependency in podspec
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<resources >
3
3
<string name =" apptentive_distribution" >React Native</string >
4
- <string name =" apptentive_distribution_version" >5.1.2 </string >
4
+ <string name =" apptentive_distribution_version" >5.1.3 </string >
5
5
</resources >
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = "apptentive-react-native"
3
- s . version = "5.1.2 "
3
+ s . version = "5.1.3 "
4
4
s . summary = "Apptentive SDK module for React Native"
5
5
6
6
s . description = <<-DESC
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ - (dispatch_queue_t)methodQueue
52
52
if (configuration) {
53
53
configuration.appID = configurationDictionary[@" appleID" ];
54
54
configuration.distributionName = @" React Native" ;
55
- configuration.distributionVersion = @" 5.1.2 " ;
55
+ configuration.distributionVersion = @" 5.1.3 " ;
56
56
[Apptentive registerWithConfiguration: configuration];
57
57
58
58
[[NSNotificationCenter defaultCenter ] addObserver: self selector: @selector (messageCenterUnreadCountChangedNotification: ) name: ApptentiveMessageCenterUnreadCountChangedNotification object: nil ];
@@ -62,11 +62,8 @@ - (dispatch_queue_t)methodQueue
62
62
[self sendEventWithName: @" onAuthenticationFailed" body: @{ @" reason" : reasonString }];
63
63
};
64
64
65
- if (Apptentive.shared != nil ) {
66
- resolve (configuration.distributionName );
67
- } else {
68
- rejecter (kRejectCode , @" Unable to register" , nil );
69
- }
65
+ _registered = YES ;
66
+ resolve (configuration.distributionName );
70
67
} else {
71
68
rejecter (kRejectCode , @" Configuration returned nil" , nil );
72
69
}
@@ -412,10 +409,6 @@ - (dispatch_queue_t)methodQueue
412
409
413
410
RCT_EXPORT_MODULE ()
414
411
415
- - (BOOL )isRegistered {
416
- return Apptentive.shared != nil ;
417
- }
418
-
419
412
- (NSArray <NSString *> *)supportedEvents
420
413
{
421
414
return @[@" onUnreadMessageCountChanged" , @" onAuthenticationFailed" ];
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " apptentive-react-native" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.1.3 " ,
4
4
"description" : " React Native Module for Apptentive SDK" ,
5
5
"main" : " js/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments