Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Creating a Hello World iOS app with the Connect SDK

Updated on July 19, 2018

This tutorial demonstrates how to configure and integrate the Connect SDK with a new iOS app created in the Xcode development environment. The purpose of the app is to enable users to successfully log in to the Pega 7 Platform application instance. This tutorial demonstrates how to build a Hello World iOS app with the Connect SDK by using the Swift language. To learn more about the Connect SDK, see the Connect SDK overview.

This walkthrough takes approximately 35-45 minutes to complete.

Prerequisites

Before you start, download the icon_zip.gifHelloConnectSDKiOS.zip file, which contains sample Swift code and other Xcode files for the iOS app described in this tutorial.

You can connect to any Pega® Platform instance to test the iOS app.

The users of the Pega Platform mobile app that you are creating must have the PegaRULES:PegaAPI role assigned to them. If required, to enable the use of HTTP server URLs, in the Context tab of the API Service Package rule, clear the Require TLS/SSL for REST services in the package check box.

Build and run the app

After you create all the necessary Swift code in your Xcode project that makes calls to the Connect SDK library, you can build and run the iOS app in a simulator to test that it works correctly.

  1. From the Product menu of Xcode, click Run. The project is built, and after a few moments the iOS app displays its login screen in the simulator.
    HelloWorld first (log in) screen
    HelloWorld first screen
  2. Enter a valid user name and a password for the app. The content that displays depends on the portal that is associated with the access group of the operator.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us