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 (3)
  • 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
  • Accepted Answer

    Amit Singh
    Amit Singh
    Offline
    Tuesday, March 07 2017, 04:28 PM - #Permalink
    0
    Hi

    i am trying to register user in c2call every time getting status = false and result "Network connection failed " , i am not understanding why it is happening my code is

    let params = ["Firstname" : "xyz" , "Lastname" : "abc" , "EMail" : "abc@gmail.com" , "Password" : "123456" , "Phone" : "+911234560980" , "NumberPIN" : "123456" , "Country" : "India" , "CountryCode" : "+91"]

    let c2call = C2CallPhone()

    c2call.registerUser(params) { (status, result) in

    print(status)
    print(result)


    }


    Please help
    The reply is currently minimized Show
  • Accepted Answer

    Amit Singh
    Amit Singh
    Offline
    Wednesday, March 08 2017, 11:11 AM - #Permalink
    0
    Hello i am also using pro account for registration , and i am not getting any call back from this API

    let params = ["Firstname" : "xyz" , "Lastname" : "abc" , "email" : "amit@gmail.com", "Password" : "123456" , "Phone" : "+911234560980" , "Country" : "India" , "CountryCode" : "+91"]

    C2CallPhone.current()?.registerUser(params, withCompletionHandler: { (status, result) in

    print(status)
    print(result)

    })


    Please help
    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.