Contents

instabug/instabug-sp

> ⚠️ **Repository Archived**

Installation

SPM

  1. Open project target.
  2. Select Swift packages
  3. Add New package and paste https://github.com/Instabug/Instabug-SP
  4. Make sure to be on the latest.

Other

Please refer to https://github.com/Instabug/Instabug-iOS for more installation methods

Usage

  1. Import Instabug framework header in your app delegate

``swift // Swift import Instabug ``

``objective-c // Objective-C #import <Instabug/Instabug.h> ``

  1. Add the following to your app delegate's application:didFinishLaunchingWithOptions: method.

``swift // Swift Instabug.start(withToken: <#app token#>, invocationEvents: .shake) ` `objective-c // Objective-C [Instabug startWithToken:<#app token#> invocationEvents:IBGInvocationEventShake]; ` Make sure to replace app_token` with your application token. Find it here.

Notes

Instabug needs access to the microphone and photo library to be able to let users add audio and video attachments. Starting from iOS 10, apps that don’t provide a usage description for those 2 permissions would be rejected when submitted to the App Store.

For your app not to be rejected, you’ll need to add the following 2 keys to your app’s info.plist file with text explaining to the user why those permissions are needed:

  • NSMicrophoneUsageDescription
  • NSPhotoLibraryUsageDescription

If your app doesn’t already access the microphone or photo library, we recommend using a usage description like:

  • "<app name> needs access to the microphone to be able to attach voice notes."
  • "<app name> needs access to your photo library for you to be able to attach images."

The permission alert for accessing the microphone/photo library will NOT appear unless users attempt to attach a voice note/photo while using Instabug.

More

You can also check out our API Reference for more detailed information about our SDK.

Package Metadata

Repository: instabug/instabug-sp

Default branch: master

README: README.md