diff --git a/lib/motion/project/testflight.rb b/lib/motion/project/testflight.rb index 0b63493..b81532e 100644 --- a/lib/motion/project/testflight.rb +++ b/lib/motion/project/testflight.rb @@ -70,7 +70,7 @@ def create_launcher # This file is automatically generated. Do not edit. if Object.const_defined?('TestFlight') and !UIDevice.currentDevice.model.include?('Simulator') - NSNotificationCenter.defaultCenter.addObserverForName(UIApplicationDidBecomeActiveNotification, object:nil, queue:nil, usingBlock:lambda do |notification| + NSNotificationCenter.defaultCenter.addObserverForName(UIApplicationDidFinishLaunchingNotification, object:nil, queue:nil, usingBlock:lambda do |notification| #{'TestFlight.setDeviceIdentifier(UIDevice.currentDevice.uniqueIdentifier)' if identify_testers} TestFlight.takeOff('#{app_token || team_token}') end)