Custom Pega Mobile Client modules for the iOS platform
The distribution package is available from your Pegasystems Global Customer Support representative. The distribution package file contains all the resources that you need to build a Pega Mobile Client-based custom mobile app, such as libraries, product modules, documentation, scripts, styles, and graphic files.
Dependencies on Pega Mobile Client modules
Pega Mobile Client consists of several modules. For example, the Base module contains the basic functionality of the Pega Mobile Client and is required for creating custom modules. A custom module can have dependencies on product modules other than Base. All Pega Mobile Client modules are available in the Frameworks directory of the distribution package.
For more information, see Adding third-party dependencies.
dispatchQueue method has been implemented in the
For information about creating plug-in classes, see Extending Pega Mobile Client with plug-in classes.
To further extend the Pega Mobile Client, for example, to grant the custom mobile app access to native events or to respond to system events, you can use extension classes. Custom modules contain one or more extension classes. An extension class enables simple initialization, such as creating single instances or registering for
UIApplication notifications. Its instance is created once, at client startup, and remains valid within the client for its lifetime. If the custom module library contains more than one extension class, Pega Mobile Client creates an instance for each of them.
All extension classes must inherit from the
PMApplicationPlugin class. Such classes are instantiated when the application is initiated, and remain valid for its lifetime.
To create the main extension class, you must create a subclass of the
PMApplicationPlugin class. Pega Mobile Client instantiates all subclasses of the
PMApplicationPlugin class by calling the
init selector in the Pega Mobile Client's
UIApplicationDelegate init file. The extension class can react to the events from the
UIApplicationDelegate protocol that are defined in the
For infomation about creating extension classes, see Extending Pega Mobile Client with extension classes.
Sample custom module
This article includes a working example of a custom module. Before you create your own module, you can analyze the contents and structure of a sample custom module that was created in Xcode by downloading the following file and following the instructions in Developing custom Pega Mobile Client modules for the iOS platform.