File tree 1 file changed +3
-1
lines changed
Apptentive/Apptentive/Engagement/Persistence
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,9 @@ - (BOOL)engageLocalEvent:(NSString *)event userInfo:(nullable NSDictionary *)use
93
93
- (BOOL )engageCodePoint : (NSString *)codePoint fromInteraction : (nullable ApptentiveInteraction *)fromInteraction userInfo : (nullable NSDictionary *)userInfo customData : (nullable NSDictionary *)customData extendedData : (nullable NSArray *)extendedData fromViewController : (nullable UIViewController *)viewController {
94
94
if (self.state != ApptentiveBackendStatePayloadDatabaseAvailable) {
95
95
[self .operationQueue addOperationWithBlock: ^{
96
- [self engageCodePoint: codePoint fromInteraction: fromInteraction userInfo: userInfo customData: customData extendedData: extendedData fromViewController: viewController];
96
+ dispatch_async (dispatch_get_main_queue (), ^{
97
+ [self engageCodePoint: codePoint fromInteraction: fromInteraction userInfo: userInfo customData: customData extendedData: extendedData fromViewController: viewController];
98
+ });
97
99
}];
98
100
99
101
ApptentiveLogInfo (@" Backend not ready. Deferring engagement of %@ " , codePoint);
You can’t perform that action at this time.
0 commit comments