Search code examples
ibm-mobilefirstmobilefirst-servermobilefirst-studio

How can a real device be registered to and recognized by the production MobileFirst 7.0 Server?


We have successfully configured a MobileFirst 7.0 server for testing and production environment, and deploy an application on it. But after several real devices installing the App (both iOS and Android), we CAN NOT see any devices in the worklightconsole.

No device registered in this runtime.

enter image description here

So how can these devices which havd already installed the app be recognized and displayed in the worklightconsole device tab.


Solution

  • See here: http://engtest01w.francelab.fr.ibm.com:9090/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.dev.doc/devref/c_the_application_descriptor.html

    userIdentityRealms
    A comma-separated ordered list of user identity realms for OAuth authentication. The realms should be ordered by preference. The first successfully authenticated realm in this list is selected as the user identity realm. If the list is empty, or no realm in the list was authenticated, the ID token contains no identity information. This element is optional and the default value is an empty list.

    <userIdentityRealms>WASLTPARealm, CustomAuthenticatorRealm</userIdentityRealms>

    Note: This attribute is used to set user identity in the OAuth-based flows. For the classic (pre-V7.0) flows, see the documentation for the customSecurityTest security test.

    You'll need to provide your realm name in the application-descriptor.xml file in order for the app to be listed in the Devices tab.