diff --git a/mParticle-UrbanAirship.podspec b/mParticle-UrbanAirship.podspec index 427a133..5a4e8b5 100755 --- a/mParticle-UrbanAirship.podspec +++ b/mParticle-UrbanAirship.podspec @@ -13,9 +13,9 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/mparticle-integrations/mparticle-apple-integration-urbanairship.git", :tag => "v" + s.version.to_s } s.social_media_url = "https://twitter.com/mparticle" - s.ios.deployment_target = "11.0" + s.ios.deployment_target = "14.0" s.ios.source_files = 'mParticle-UrbanAirship/*.{h,m,mm}' s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0' - s.ios.dependency 'Airship', '~> 16.7' + s.ios.dependency 'Airship', '~> 17.7' end diff --git a/mParticle-UrbanAirship/MPKitUrbanAirship.m b/mParticle-UrbanAirship/MPKitUrbanAirship.m index 2b2b8cf..bb6579f 100755 --- a/mParticle-UrbanAirship/MPKitUrbanAirship.m +++ b/mParticle-UrbanAirship/MPKitUrbanAirship.m @@ -345,7 +345,6 @@ - (MPKitExecStatus *)setUserAttribute:(NSString *)key value:(NSString *)value { if (uaTag) { [[UAirship channel] addTag:uaTag]; - [[UAirship channel] updateRegistration]; returnCode = MPKitReturnCodeSuccess; } else { @@ -370,7 +369,6 @@ - (MPKitExecStatus *)setUserTag:(NSString *)tag { if (uaTag) { [[UAirship channel] addTag:uaTag]; - [[UAirship channel] updateRegistration]; returnCode = MPKitReturnCodeSuccess; } else { @@ -398,7 +396,6 @@ - (nonnull MPKitExecStatus *)removeUserAttribute:(nonnull NSString *)key { [editor removeTag:key]; [editor apply]; }]; - [[UAirship channel] updateRegistration]; returnCode = MPKitReturnCodeSuccess; } else { @@ -468,7 +465,7 @@ - (BOOL)setNamedUser:(NSString *)identityString identityType:(MPUserIdentity)ide return NO; } - [UAirship namedUser].identifier = identityString; + [UAirship.contact identify:identityString]; return YES; } @@ -669,7 +666,6 @@ - (void)setTagMappings:(NSArray *)tagMappings forCommerceEvent if (matchTagMappings.count > 0) { [matchTagMappings enumerateObjectsUsingBlock:^(MPUATagMapping * _Nonnull tagMapping, NSUInteger idx, BOOL * _Nonnull stop) { [[UAirship channel] addTag:tagMapping.value]; - [[UAirship channel] updateRegistration]; }]; } } @@ -688,7 +684,6 @@ - (void)setTagMappings:(NSArray *)tagMappings forEvent:(MPEven if (matchTagMappings.count > 0) { [matchTagMappings enumerateObjectsUsingBlock:^(MPUATagMapping * _Nonnull tagMapping, NSUInteger idx, BOOL * _Nonnull stop) { [[UAirship channel] addTag:tagMapping.value]; - [[UAirship channel] updateRegistration]; }]; } } @@ -725,7 +720,6 @@ - (void)setTagMappings:(NSArray *)tagMappings forAttributesInC NSString *tagPlusAttributeValue = [NSString stringWithFormat:@"%@-%@", tagMapping.value, attributeString]; [[UAirship channel] addTag:tagPlusAttributeValue]; [[UAirship channel] addTag:tagMapping.value]; - [[UAirship channel] updateRegistration]; } }]; } @@ -754,7 +748,6 @@ - (void)setTagMappings:(NSArray *)tagMappings forAttributesInE NSString *tagPlusAttributeValue = [NSString stringWithFormat:@"%@-%@", tagMapping.value, attributeString]; [[UAirship channel] addTag:tagPlusAttributeValue]; [[UAirship channel] addTag:tagMapping.value]; - [[UAirship channel] updateRegistration]; } }]; }