From 12521f80be95e3aa5cc211861969c2f0ac87658b Mon Sep 17 00:00:00 2001 From: Marat Al Date: Thu, 4 Jan 2024 20:18:48 +0100 Subject: [PATCH] Fixed call order. --- Source/ARTPushActivationState.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ARTPushActivationState.m b/Source/ARTPushActivationState.m index 289a82b48..0dc0223fc 100644 --- a/Source/ARTPushActivationState.m +++ b/Source/ARTPushActivationState.m @@ -116,10 +116,10 @@ - (ARTPushActivationState *)transition:(ARTPushActivationEvent *)event { return self; } else if ([event isKindOfClass:[ARTPushActivationEventCalledActivate class]]) { - [self.machine registerForAPNS]; #if TARGET_OS_IOS [self.machine.rest setupLocalDevice_nosync]; #endif + [self.machine registerForAPNS]; return validateAndSync(self.machine, event, self.logger); } return nil;