Skip to content

omilia/omilia-ios-sdk

Repository files navigation

Summary

This is the iOS SDK of Omilia™. You can read more about Omilia™ at omilia.com.

Table of contents

We will describe the steps to integrate the Omilia SDK into your iOS project. We are going to assume that you are using Xcode for your iOS development.

Download the latest Omilia SDK version from our releases page. Extract the archive into a directory of your choice.

You can integrate the Omilia SDK by adding it to your project as a framework (also called embedded framworks). Drag and drop the OmiliaSDK.framework to your project.

Select your project in the Project Navigator. In the left hand side of the main view, select your target. In the tab Build Phases, expand the group Link Binary with Libraries. On the bottom of that section click on the + button. Select the AVFoundation.framework and click the Add button.

If you added the Omilia SDK as a dynamic framework, you should use the following import statement:

#import <OmiliaSdk/OmiliaSdk.h>

Next, we'll set up basic functionality.

In the Project Navigator, open the source file of your application delegate. Add the import statement at the top of the file, then add the following call to Omilia in the didFinishLaunching or didFinishLaunchingWithOptions method of your app delegate:

#import <OmiliaSdk/OmiliaSdk.h>

// ...

[OmiliaClient setUrl:{YourUrl};

[Omilia launchWithApiKey:@"{YourApiKey}"];

Note: Initializing the Omilia SDK like this is very important. Replace {YourApiKey} with your api key and please provide a {YourUrl}.

To use the omilia functionality just instantiate OmiliaViewController class.

    OmiliaViewController *omiliaController = [OmiliaViewController new];
    [self.navigationController pushViewController:omiliaController animated:YES];

Build and run your app. If the build succeeds, you should carefully read the SDK logs in the console. After the app launches for the first time, you should see the info log Install success.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published