Skip to content

younanjo/ios-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doorbell iOS SDK

The Doorbell iOS SDK.

Full documentation

You can view the full documentation here: https://doorbell.io/docs/ios

Installation

Include Doorbell via CocoaPods: http://cocoapods.org/?q=on%3Aios%20doorbell

Usage

In the ViewController where you want to use Doorbell, you'll need to import the library using:

#import "Doorbell.Doorbell.h"

Then when you want to show the dialog:

NSString *appId = @"123";
NSString *appKey = @"xxxxxxxxxxxxxxxxxx";

Doorbell *feedback = [Doorbell doorbellWithApiKey:appKey appId:appId];
[feedback showFeedbackDialogInViewController:self completion:^(NSError *error, BOOL isCancelled) {
    if (error) {
        NSLog(@"%@", error.localizedDescription);
    }
}];

To pre-populate the email address (if the user is logged in for example):

NSString *appId = @"123";
NSString *appKey = @"xxxxxxxxxxxxxxxxxx";

Doorbell *feedback = [Doorbell doorbellWithApiKey:appKey appId:appId];
feedback.showEmail = NO;
feedback.email = @"email@example.com";
[feedback showFeedbackDialogInViewController:self completion:^(NSError *error, BOOL isCancelled) {
    if (error) {
        NSLog(@"%@", error.localizedDescription);
    }
}];

About

The Doorbell iOS SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 96.8%
  • Ruby 3.2%