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:

  1. that you're using correct app version (if registered via console)
  2. that you're using correct application identifier. identifier case sensitive , whether register cli or console, need make sure enter correctly
  3. if registered console, make sure have added app .plist file server details.

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -