Skip to content

johnsietsma/TestFlightUnity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestFlight has been bought by Apple. This plugin should not be used!

TestFlightUnity

A Unity Plugin for the TestFlight SDK.

Thanks to Mike Munson for adding Android support.

Thanks to @elaberge for fixing warnings, adding separate Android token support and extra error checking.

Features

This plugin supports on iOS:

  • Session registration.
  • Checkpoints.
  • Custom environment information.
  • The feedback view.
  • Sending feedback via the SDK.
  • Setting the device ID (for non-app store builds only).
  • Logging.
  • Deliberate crashes to test the crash handler.

And on Android:

  • TakeOff.
  • Logging.
  • Checkpoints.

Usage

First download and extract all the SDK files from here: https://testflightapp.com/sdk/download/

To use the sample app:

  1. Put all the TestFlight SDK files into the unity/Assets/Plugins/iOS and Assets/Plugins/Android folders.
  2. Find your SDK Token by going to the TestFlight website, selecting your app and clicking on "App Token" in the sidebar.
  3. Open up the ExampleTestFlight scene in unity/Assets/TestFlight.
  4. Select the ExampleTestFlight object in the heirarchy.
  5. Put your SDK Token into the token field in the inspector.
  6. Build and run on your device.
  7. Optionally, upload the example app to TestFlight to test all the features.

To use the plugin in your Unity project:

  1. Put all the TestFlight SDK files into your Assets/Plugins/iOS and Assets/Plugins/Android folders.
  2. Copy all the files from unity/Assets/Plugins/iOS into the Assets/Plugins/iOS folder in your project.
  3. Add calls to the TestFlight class in your project. Use unity/Assets/TestFlight/ExampleTestFlight.cs as a guide.
  4. Run, test and publish your app to TestFlight.

Andriod Notes

  • You MUST include the proper permissions in the AndroidManifest next to the application entry: ....
  • You SHOULD extract the tf.properties from the Testflight-Library (starting on the "res"-level) and put it as a copy next to the library (otherwise Testflight will not notice that an SDK is included)

Thanks to @habitoti for these notes.

  • Doesn't work in the TestFlight API v1.2 because takeOff() isn't called within onCreate(). Tested in TestFlight API v1.3 and v1.4.

Thanks to Thomas Olsen for testing and figuring this out.

Further Resources

Check the TestFlight SDK at https://testflightapp.com/sdk/doc/.

MIT License, see License.txt.

About

Unity bindings for TestFlight

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published