Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/backchannel/BackchannelSDK-iOS
The official iOS SDK for Backchannel.
https://github.com/backchannel/BackchannelSDK-iOS
Last synced: 17 days ago
JSON representation
The official iOS SDK for Backchannel.
- Host: GitHub
- URL: https://github.com/backchannel/BackchannelSDK-iOS
- Owner: backchannel
- License: other
- Created: 2015-11-03T12:44:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-29T01:28:06.000Z (over 7 years ago)
- Last Synced: 2024-03-15T14:07:00.086Z (3 months ago)
- Language: Objective-C
- Homepage: https://backchannel.io
- Size: 229 KB
- Stars: 238
- Watchers: 10
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Lists
- awesome-ios-architecture - BackchannelSDK-iOS
- awesome-ios-architecture - BackchannelSDK-iOS
- awesome-ios-architecture - BackchannelSDK-iOS
README
# Backchannel iOS SDK
Backchannel is a quick, convenient way for your beta testers to report their feedback — right from within your app itself. With the tap of a button, they can report a bug, offer feedback on a new feature, or simply ask a question. Backchannel can also detect when users take screenshots of your app, and guide them to the correct feedback channel, with the screenshot already attached.
## Quality
Backchannel is a great citizen in your app.
* Backchannel is open-source, so it's easy to see how things work.
* Backchannel's classes are all under 250 lines of code.
* Backchannel is standalone; it has no dependencies.
* Backchannel has a three-letter class prefix, `BAK`, to prevent collisions.
* Backchannel doesn't do any swizzling.
* Backchannel has zero categories. Your app's Foundation classes are safe.## Requirements
* iOS 7.0+
* Xcode 6.3## Installation
To integrate Backchannel into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'Backchannel'
Then, run `pod install`.
## Usage
The simplest way to present Backchannel is to use `Backchannel` class. Wire up a button like so:
- (IBAction)buttonTapped:(id)sender {
[[Backchannel setAPIKey:@"your_api_key"] presentModallyOverViewController:self];
}or its Swift equivalent:
@IBAction func buttonTapped(sender: UIButton) {
Backchannel.setAPIKey("your_api_key").presentModallyOverViewController(self);
}Once the API key is set, you can use the `+backchannel` class method to access Backchannel. The Swift runtime removes this method, so you can access the `Backchannel` singleton by just initializing the Backchannel class with `Backchannel()`.
### Screenshot detection
To use Backchannel's screenshot detection features, Backchannel needs to know your app's `rootViewController`. To configure it, set up Backchannel with an API key and a root view controller during your app's initialization:
//...
[Backchannel setAPIKey:@"your_api_key" rootViewController:rootViewController];
//...or, in Swift:
Backchannel.setAPIKey("your_api_key", rootViewController:rootViewController);
After this API key is set, you can use the `+backchannel` class method (`sharedBackchannel()` in Swift) to present Backchannel:
- (IBAction)buttonTapped:(id)sender {
[[Backchannel backchannel] presentModallyOverViewController:self];
}or, in Swift:
@IBAction func buttonTapped(sender: UIButton) {
Backchannel.sharedBackchannel().presentModallyOverViewController(self);
}## Contributing
Pull requests are always welcome!
## License
Backchannel is available under the MIT license. See the LICENSE file for more info.