You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// return if the user has not granted privacy permissions
1265
1265
if ([selfshouldLogMissingPrivacyConsentErrorWithMethodName:@"sendTags:onSuccess:onFailure:"]) {
1266
-
NSError *error = [NSErrorerrorWithDomain:@"com.onesignal.tags"code:0userInfo:@{@"error" : @"Your application has called sendTags:onSuccess:onFailure: before the user granted privacy permission. Please call `consentGranted(bool)` in order to provide user privacy consent"}];
1267
-
failureBlock(error);
1266
+
if (failureBlock) {
1267
+
NSError *error = [NSErrorerrorWithDomain:@"com.onesignal.tags"code:0userInfo:@{@"error" : @"Your application has called sendTags:onSuccess:onFailure: before the user granted privacy permission. Please call `consentGranted(bool)` in order to provide user privacy consent"}];
1268
+
failureBlock(error);
1269
+
}
1268
1270
return;
1269
1271
}
1270
1272
1271
1273
1272
1274
if (![NSJSONSerializationisValidJSONObject:keyValuePair]) {
1273
1275
NSString *errorMessage = [NSStringstringWithFormat:@"sendTags JSON Invalid: The following key/value pairs you attempted to send as tags are not valid JSON: %@", keyValuePair];
0 commit comments