LiveLike / instabug-unity

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Objective-C 72.7%Language:C# 16.9%Language:Shell 8.8%Language:Objective-C++ 1.7%