Unable to register a device with MobileFirst and Swift client -
i testing ibm mobilefirst sample code using locally installed mfp server ios client. expecting following code give me error or token. however, both nil.
wlauthorizationmanager.sharedinstance().obtainaccesstoken(forscope: nil) { (token, error) -> void in
if (error != nil) { self.titlelabel.text = "bummer..." self.connectionstatuslabel.text = "failed connect mobilefirst server\n\(serverurl)" print("did not recieve access token server: " + error.debugdescription) } else { self.titlelabel.text = "yay!" self.connectionstatuslabel.text = "connected mobilefirst server\n\(serverurl)" print("recieved following access token value: " + token!.value) } self.testserverbutton.isenabled = true }
things for:
- that you're using correct app version (if registered via console)
- that you're using correct application identifier. identifier case sensitive , whether register cli or console, need make sure enter correctly
- if registered console, make sure have added app .plist file server details.
Comments
Post a Comment