Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only invoke TestFlight.takeOff when app launches instead of every time when app becomes active #27

Merged
merged 1 commit into from
Apr 21, 2014

Conversation

hboon
Copy link
Contributor

@hboon hboon commented Aug 29, 2013

According to https://testflightapp.com/sdk/ios/doc/2.0.0/,

+[TestFlight takeOff:] should be called from -application:didFinishLaunchingWithOptions: and

Sessions automatically start at app launch, app did become active, and app will enter foreground and end at app will resign active, app did enter background, or app will terminate.

implies that the SDK already registers observers for UIApplication state changes to handle session end and resume.

Also related to #18

@markrickert
Copy link

👍

Thanks for this, I'm getting tired of seeing these messages in my console when i bring the app to the foreground: **TESTFLIGHT WARNING**: You may not call takeOff: more than once.

@Watson1978, any chance of getting this merged into the source?

Until then:

gem 'motion-testflight', :github => 'hboon/motion-testflight', :branch => 'takeoff-on-launch-only'

Watson1978 added a commit that referenced this pull request Apr 21, 2014
 Only invoke TestFlight.takeOff when app launches instead of every time when app becomes active
@Watson1978 Watson1978 merged commit a837cc9 into HipByte:master Apr 21, 2014
@Watson1978
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants