getPushEndpointWithError: method

Retrieves the push end-point which the enterprise back-end can use to push data to the ODP client via the server.

Syntax

- ( NSString * ) getPushEndpointWithError : ( NSError ** ) error

Parameters

Returns

Returns the end-point as a string object (URL/URN)

Example 1

-(void)userRegistrationSuccessful:(SMPUserManager*)userManager
{
 NSLog("userRegistrationSuccessful...");
 NSString* appConID= [userManager applicationConnectionID];
 SMPAppSettings* appSettings = [SMPAppSettings initializeWithConnection:clientConn userName:"username" password:@"password"];
 NSError *error=nil;
 NSString *pushEndpoint = [appSettings getPushEndpointWithError:&error];
 if(!error){
  NSLog("pushEndpoint : %",pushEndpoint);
 }