Skip to Content

Fiori iOS SDK User Registration issue

Hi all,
I have an "issue" which is occurring during the User Registration process that takes place whenever the application understands that the Application Connection ID is not present or is expired.

When the application loads up as is about to show the first screen, if there's no X-SMP-APPCID token registered in the KeyChain, I trigger the "onboarding" process and present a login view.

After clicking on "Sign-In", I trigger the registration process like this:

As you can see, if the registration was successful, I also apply the device to be registered for remote notifications using the registerForRemoteNotification method, which I have implemented in the AppDelegate:

The problem is that when this second call takes place, I see two User Registrations in the SMP cockpit, one assigned to an APNS ID (which I assume is the one taken by SAPcmpsRemoteNotificationClient) and one without any APNS ID (which I assume is the one I take "manually" by calling the registration URL).

I don't suppose this is the intended behavior, so maybe I am "messing" something up somewhere...

Any suggestion?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 23, 2017 at 06:58 AM


    The registration process to acquire an appCid is technically not required anymore (even though you can of course still do it). You could directly send the push token to the server and would get the registration implicitly. The appCid is sent to the server in the `SAPcpmsSettingsParameters`, if you don't set the appCid explicitly, it will default to `UIDevice.current.identifierForVendor?.uuidString`.

    In your case, as I don't see you're setting the appCid in the settingsParameters, you'll see two different ids then. You could copy the appCid that you load in the registration step into the settingsParameters - this should also do the trick if you need to stick with the process of having an explicit registration.


    Add comment
    10|10000 characters needed characters exceeded