From 147ee716747fa776d6869ef95e70a7c438a4c0dc Mon Sep 17 00:00:00 2001 From: Frank Schmitt Date: Tue, 10 Feb 2026 15:08:40 -0800 Subject: [PATCH] Replace deprecated push registration method --- mParticle-Apptentive/MPKitApptentive.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mParticle-Apptentive/MPKitApptentive.m b/mParticle-Apptentive/MPKitApptentive.m index a5df45e..8d06f4e 100644 --- a/mParticle-Apptentive/MPKitApptentive.m +++ b/mParticle-Apptentive/MPKitApptentive.m @@ -188,11 +188,7 @@ - (MPKitExecStatus *)receivedUserNotification:(NSDictionary *)userInfo { } - (MPKitExecStatus *)setDeviceToken:(NSData *)deviceToken { - // TODO: use `setRemoteNotificationToken` after next ApptentiveKit release (missing @objc annotation). -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - [Apptentive.shared setPushProvider:ApptentivePushProviderApptentive deviceToken:deviceToken]; -#pragma clang diagnostic pop + [Apptentive.shared setRemoteNotificationToken:deviceToken]; return [self execStatus:MPKitReturnCodeSuccess]; }