CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.
License | Custom |
ReleasedLast Release | Jun 2015 |
Maintained by Shane Rogers.
Depends on: | |
AFNetworking | >= 0 |
JSONModel | >= 0 |
JSQMessagesViewController | >= 0 |
SocketRocket | >= 0 |
MBProgressHUD | >= 0 |
URBMediaFocusViewController | >= 0 |
The FeedbackLoop iOS SDK supports iOS iOS 7.x.
Add the FeedbackLoop.framework
to your Xcode project (you can get it from GitHub). In your build target, make sure to include the -ObjC
flag under Other Linker Flags
.
Sometimes Xcode won't correctly add the FeedbackLoop.bundle
so make sure to add it to your target's Copy Bundle Resources build phase. Reveal the FeedbackLoop.framework
in Finder and you'll find the bundle in the FeedbackLoop.framework/Versions/A/Resources
folder.
Import FeedbackLoop using the following #import <FeedbackLoop/FeedbackLoop.h>
statement.
<FeedbackLoop/FeedbackLoop.h>
where necessary - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Initialize FeedbackLoop
[FeedbackLoop initWithAppId:@"<#your-app-id#>"];
}
NSDictionary *user = @{
@"email": @"<%= current_user.email %>",
@"user_name": @"<%= current_user.name %>",
@"user_link": @"http://www.yourwebsitehere.com/users/user_id",
@"created_at": @"<%= current_user.created_at.to_i %>",
@"links": @{ // Any metadata you want to include about the user
@"model": [UIDevice currentDevice].model
}
};
// Pass the user to the register method
[FeedbackLoop registerAuthenticatedUser:user];
// Present the chat channel
[FeedbackLoop presentChatChannel];
Easy-peasy.