Register User API Not working Issue

0
Hello Team,

I am going to register user on C2Call,I have my own UI that is not subclass of any Class that are mention on the SDK like "SCRegistrationController".I make the Appdelegate of my project to be subclass of "C2CallAppDelegate".And set the Affiliateid & Secret key that I recive from my c2call account.
When I try to register a user with the following method

NSMutableDictionary *dictuser = [NSMutableDictionary new];
[dictuser setValue:@"Rakesh" forKey:@"Firstname"];
[dictuser setValue:@"Bajeli" forKey:@"Lastname"];
[dictuser setValue:@"qwertyuiop" forKey:@"Password"];
[dictuser setValue:@"+917838707543" forKey:@"Phone"];
[dictuser setValue:@"India" forKey:@"Country"];
[dictuser setValue:@"+91" forKey:@"CountryCode"];

[[C2CallPhone currentPhone] registerUser:dictuser withCompletionHandler:^(BOOL success, NSString *result) {


}];

I do not get any response and it never goes under the completion block.

Please help me out of this problem.Wating for your reponse
  • Michael Knecht
    more than a month ago
    I guess [C2CallPhone currentPhone] returns nil, therefore registerUser will actually not be called.
    [C2CallPhone currentPhone] is available after didBecomeActive and it's important to call [super didBecomeActive...] in you AppDelegate methods.
    Its also required to have a Pro account for programmatic registration.

    Best regards,

    Michael
Responses (1)
  • Accepted Answer

    Monday, April 11 2016, 08:40 AM - #Permalink
    0
    Hello Michael,

    I am using the free account ,So for Programmatically registration I need a pro account and also please confirm me that the steps I am following for register user and setting the affilicate ID and secret key are correct.



    Regards
    Rakesh Bajeli
    The reply is currently minimized Show
Your Reply

About us

C2Call GmbH leads the way in introducing next generation mobile and browser-based calling solutions for the computing cloud. FriendCaller for iOS and Android are built using C2Call SDK, and demonstrate the unique capabilities to establish a peer-to-peer connection with any mobile platform and with any Internet browser without prerequisite software installations. With the new C2Call SDK, developers would now be able to integrate features alike FriendCaller in their existing or new apps on mobile.