The Butterfly SDK helps your app to take an active part in the fight against domestic violence.
- If you don't have CocoaPods In your project, visit here : https://cocoapods.org/ Just add the pod 'TheButterflySDK' similar to the following to your Podfile:
target 'MyApp' do
pod 'TheButterflySDK', '2.0.0'
end
Then run a pod install in your terminal, or from CocoaPods app.
To recognize your app in TheButterflySDK servers you'll need an application key. You can set it via code, as demonstrated here.
// import the pod
#import "ButterflySDK.h"
/* ... */
// Whenever you wish to open our screen, simply call:
[ButterflySDK openReporterWithKey:@"YOUR_API_KEY"];
// import the pod
import TheButterflySDK
/* ... */
// Whenever you wish to open our screen, simply call:
ButterflySDK.openReporter(withKey: "YOUR_API_KEY")
You can easily verify your application key 🔑 by simply running the SDK in DEBUG mode 🐞.
This will cause our servers to skip the part of sending reports to real live support centers, they will only verify the API key. Eventually you'll get success / failure result.