Skip to content

The Unity iOS & Android plugins for Instabug (instabug.com)

License

Notifications You must be signed in to change notification settings

LiveLike/instabug-unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

instabug-unity

An iOS & Android plugin for using Instabug with Unity.

Setup

  • Clone the instabug-unity repository & add to your project.
  • The plugin Unity's RuntimeInitializeOnLoadMethod to initialize the plugin. So there shouldn't be anything else you need to do.

Known Issues & Caveats

  • The iOS changes require overriding Unity's prefix.pch file with our own prefix.pch. This is to ensure that iOS NSLogs are included in all Instabug iOS log requests. See Instabug iOS Logging Documentation for more info.
  • On Android, screencapture & video capture is broken. It's been tough to fix because we're directly using the resources in instabug.aar rather than creating our own. So we have no control over what those resources do. Worst case, we might need to only use the instabug.jar and re-create the UI separately in another aar.
  • On Android, we're using Instabug v4.0.3 because the structure of the jar after that version doesn't work in Unity. (Results in ClassNotfoundexception).

Future Work

  • Make Android plugin purely native instead of using JNI.
  • Expose functionality for accessing the Instabug API directly from Unity