Improved MobileFirst API

New features improve and extend the APIs that you can use to develop mobile applications.

New client-side API for migrated Bluemix iOS apps

The Objective-C client-side API for migrated apps from IBM® Bluemix® provides a compatibility layer that translates the code that is in your original Bluemix app to code that is recognized by IBM MobileFirst™ Platform Foundation. For more information, see Objective-C client-side API for migrated Bluemix iOS apps.

Updated JavaScript client-side API

IBM MobileFirst Platform Foundation V7.1.0 includes updates in its JavaScript client-side API to develop hybrid apps, as follows:

Updated classes:
WL.Client
  • The logout function has been enhanced.

    The logout mechanism in this version has changed. In addition to calling the logout in the server, the logout function deletes the access token and ID token from the client device. The next time the OAuth flow starts, the client is required to again log in to the realm from which it was logged out.

  • The pinTrustedCertificatePublicKey method has been added to support certificate pinning.
  • The invokeProcedure method now extends the response compression support for Windows 8 Universal.

For more information, see WL.Client class

Updated JavaScript server-side API

IBM MobileFirst Platform Foundation V7.1.0 includes updates in its JavaScript server-side API that you can use to extend the MobileFirst Server, as follows:

New API:

getClientId()

With this new API, you can return the String value of the ClientID associated with this client.

For more information, see the WL.Server class.

For more information, see JavaScript server-side API.

Updated Objective-C client-side API for iOS

IBM MobileFirst Platform Foundation V7.1.0 includes updates in its Objective-C client-side API to develop native apps on iOS, as follows:

Updated API classes:
WLClient
  • The following functions have been enhanced:
    • logout:withDelegate:options
    • logout:withDelegate
    The logout mechanism in this version has changed. In addition to calling the logout in the server, both logout functions delete the access token and ID token from the client device. The next time the OAuth flow starts, the client is required to again log in to the realm from which it was logged out.
  • The pinTrustedCertificatePublicKeyFromFile method has been added to support certificate pinning.

For more information, see WLClient class

Updated Java client-side API for Android

IBM MobileFirst Platform Foundation V7.1.0 includes updates in its Java™ client-side API to develop native apps on Android, as follows:

Updated API classes:
WLClient
  • The logout function has been enhanced.

    The logout mechanism in this version has changed. In addition to calling the logout URL on the server, the logout function deletes the access token and ID token from the client device. The next time the OAuth flow starts, the client is required to again log in to the realm from which it was logged out.

  • The pinTrustedCertificatePublicKey method has been added to support certificate pinning.

For more information, see WLClient class

Updated Java server-side API

IBM MobileFirst Platform Foundation V7.1.0 includes updates in its Java server-side API that you can use to extend the MobileFirst Server, as follows:

New API:

getClientId()

With this new API, you can return a unique identifier associated with this client.

For more information, see the OAuthSecurityContext interface.

For more information, see Java server-side API.

Updated C# client-side API for Windows 8 Universal and Windows Phone 8 Universal

IBM MobileFirst Platform Foundation V7.1.0 includes updates in its C# client-side API for Windows 8 Universal and Windows Phone 8 Universal.

New API classes:
WLAuthorizationManager
The WLAuthorizationManager class manages the entire OAuth flow, from client registration to token generation.
WLResourceRequest
The WLResourceRequest class encapsulates a resource request and provides several send methods with different inputs for the body of a request. This class allows REST adapter support in native Windows 8 Universal and Windows Phone 8 universal environment.
Updated API classes:
WLProcedureInvocationData
An optional parameter is added to this class to allow the compression of data from backend through MobileFirst adapters.

For more information about these classes and their methods, see C# client-side API for Windows 8 Universal and Windows Phone 8 Universal apps.