Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: unable to register android native app using relay server in smp 3.0

$
0
0

Hi Midhun,

Thanks for your reply. i could able to register app using rest client after going through above link shared by you but when i am using android native code SMP 3 - Develop App and Test

but i am getting error backend url is not rechable.

 

below is the format i am using

 

try

        {

  mApplication.setUsername("test");

  mApplication.setPassword("user123");

  ClientConnection clientConnection =

  new ClientConnection(getApplicationContext(),

  "com.atos.demo.cars",

  null,

  "No Authentication Challenge",

  mApplication.getRequestManager());

  clientConnection.setConnectionProfile(true,"relay serverhostname","443","/ias_relay_server/client/rs_client.dll/","smpfarm");

         UserManager userManager = new UserManager(clientConnection);

         userManager.registerUser(true);

         String appCID = userManager.getApplicationConnectionId();//Get Application ID created

         Global.setappCID(appCID);

         appSett = new AppSettings(clientConnection);

         }

         catch (SMPException e){

         returnMsg =  e.toString();

         }

 

 

  return returnMsg;

  }

i am not able to register and get list also.

 

BR,

saurabh


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>