SAP BTP SDK for iOS 9.1 was released and if you are using the SAPFioriFlows framework, then you are affected by minor incompatible changes to the ApplicationUIManaging protocol.

For a previously generated application project, the error might be related to your application-specific class ApplicationUIManager which does not conform to protocol ApplicationUIManaging.

Example%20of%20error%20due%20to%20breaking%20changes%20in%20SAPFioriFlows.ApplicationUIManaging%20protocol

Example of error due to breaking changes in SAPFioriFlows.ApplicationUIManaging protocol

The SAP BTP SDK for iOS 9.1 introduced a new argument, scene sessionID: String?, which you have to add to your implementation of functions:

  • showApplicationScreen(completionHandler:)
  • hideApplicationScreen(completionHandler:)

Example of your previous application code:

class ApplicationUIManager: ApplicationUIManaging {
    func showApplicationScreen(completionHandler: @escaping (Error?) -> Void) {
        // your code
    }
    func hideApplicationScreen(completionHandler: @escaping (Error?) -> Void) {
        // your code
    }
}

 

You have to add scene sessionID: String? as a new function argument:

class ApplicationUIManager: ApplicationUIManaging {
    func showApplicationScreen(scene sessionID: String?, completionHandler: @escaping (Error?) -> Void) {
        // your code (no changes required unless you want adopt Multi-Window support)
    }
    func hideApplicationScreen(scene sessionID: String?, completionHandler: @escaping (Error?) -> Void) {
        // your code (no changes required unless you want adopt Multi-Window support)
    }
}

The SAP BTP SDK for iOS team apologizes for the inconvenience.

Sara Sampaio

Sara Sampaio

Author Since: March 10, 2022

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x