16 Feb 2016

Building an iOS Application With Wavelabs iOS Client Library

iOS, REST 0 Comment

Ever wondered if you could build an iOS application with basic functionalities as registration and social logins under a limited amount of time? On an average, it takes at least a week for us to build an iOS application and integrate registration and login functionalities with it. Why spend so much time on integrating those features into your app when you could focus on your product? Our iOS client library helps you build one under a matter of hours. It is a simple and secure user management for iOS developers. And what’s not to love? It’s easy to integrate with an iOS app.

In this post, I’ll walk you through building the iOS app seamlessly.

Requirements

  • iOS 8.0+ / Mac OS X 10.9+
  • Xcode 6.4

Installation

CocoaPods – CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects.

You can install CocoaPods tool on OS X by running the following command using the terminal.

Add the Wavelabs iOS Client Library to your iOS app

1) Create an Xcode Project on the local machine.

2) Open a terminal and cd to the directory containing the project.

3) Add your dependencies in the Podfile as shown here.

4) Save the file.

5) Run the command – pod install. This will install the SDK’s specifier in Podfile and dependencies that framework contains.

6) Open your app’s .xcworkspace file.

Usage

Register in api.wavelabs.in. Create a tenant (or) workspace and generate a clientID.

Add Baseurl and clientId in Targets/info as WavelabsAPISettings

WavelabsSettings_ClientID

Sample ‘AuthApi‘ Request:

AuthApi is using the custom delegate ‘getAuthApiResponseDelegate’, and wherever we want to use AuthApi, we need to set the AuthApi delegate.

User Login