Learn About Building an iOS Application with Oracle Mobile Hub

Customers are mobile, and they want, expect, and should have access to your services from anywhere. A common response is to create mobile-friendly versions of web pages, but many customers prefer mobile applications, especially ones customized for specific devices.

In order to provide mobile access to your services, you'll write a mobile application that connects to your backend services. Oracle Mobile Hub is a cloud-based service that provides a unified hub for developing, deploying, maintaining and analyzing mobile applications.

Oracle provides software development kits (SDKs) for many mobile platforms like Android and iOS. These client SDKs let you use Oracle Mobile Hub features and custom APIs that you develop through Oracle Mobile Hub in your applications.

Oracle Mobile Hub includes a set of platform APIs that you can use in your mobile applications from the SDK or with REST calls. Some of the available platform APIs include:

  • Notifications
  • Storage
  • Location
  • Database access
  • App policies

Also you can build your own custom APIs, to serve your own needs. These APIs are usually implemented in Node.js code.

Before You Begin

iOS developers use the Oracle Mobile Hub SDK to create mobile applications.

The SDK simplifies authentication with Oracle Mobile Hub, and provides Objective-C wrapper classes for many Oracle Mobile Hub platform APIs.

Architecture

This architecture diagram shows the common way to connect your iOS mobile application with Oracle Mobile Hub by using the Oracle Mobile Hub iOS SDK, or the REST services.

Description of mobile-app-architecture-ios.png follows
Description of the illustration mobile-app-architecture-ios.png

You use Oracle Mobile Hub to develop and deploy your own custom REST API, or use a connector to another REST API. You develop your application using an XCode integrated development environment and Objective-C or Swift, and the Oracle Mobile Hub iOS SDK. Your application makes API calls directly to the Oracle Mobile Hub or by using REST services that Oracle Mobile Hub provides.

About Building an iOS Application with Oracle Mobile Hub

The articles in this solution are intended to help you develop a mobile application for iOS using Oracle Mobile Hub. Follow these steps when you develop your iOS application.

  1. Create a mobile backend in Oracle Mobile Hub.
  2. Download the Oracle Mobile Hub service SDK for iOS from Oracle Technology Network (OTN), and configure it for your mobile application.
  3. Create a storage collection that serves as a container for your mobile application.
  4. While developing your application, use the Oracle Mobile Hub SDK to write Swift code, and call platform and custom APIs.
  5. Test your application using an Xcode simulator.

About Required Services and Roles

This solution requires Oracle Mobile Hub.

These are the roles needed for Oracle Mobile Hub.

Service Name: Role Required to...
Oracle Cloud: Administrator To manage mobile users, roles, and realms.
Oracle Mobile Hub: ServiceDeployer Allows configuration and metadata manipulation.
Oracle Mobile Hub: ServiceDeveloper Allows typical development and test access.

See Learn how to get Oracle Cloud services for Oracle Solutions to get the cloud services you need.