FirebaseAuth binding issue for phone number authentication.

sureshvallesureshvalle USMember ✭✭
edited July 2017 in Xamarin.iOS

I am trying to create FirebaseAuth binding for phone authentication by flow below automation tool.
https://sorokoletov.com/2017/02/05/objc-automatic-easy-way-to-create-xamarin-bindings-ios/

I created successfully binding and i wrote code like below for sending verification code to device.

try
{
FIRPhoneAuthProvider.Provider().VerifyPhoneNumber("+919866225453",(string verificationID, NSError error) =>
{
if (error != null)
{
return;
}
else
{
Debug.WriteLine(verificationID);
}

                              });

        }
        catch (Exception ex)
        {
            Debug.WriteLine(ex);
        }

its sending verification code to mobile but crashing getting error like below:-
Unhandled managed exception:
Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[__NSCFString setFir_authPhoneNumber:]: unrecognized selector sent to instance 0x176f9c10

[24/07/17, 12:32:41 PM] Varun Tecordeon: Native stack trace:
0 CoreFoundation 0x1bb73b55 + 152
1 libobjc.A.dylib 0x1adfb067 objc_exception_throw + 38
2 CoreFoundation 0x1bb78fd1 + 0
3 CoreFoundation 0x1bb770c3 + 696
4 CoreFoundation 0x1ba9fdc8 _CF_forwarding_prep_0 + 24
5 TrailApp 0x00077d13 __110-[FIRPhoneAuthProvider verifyClientAndSendVerificationCodeToPhoneNumber:retryOnInvalidAppCredential:callback:]_block_invoke_2 + 508
6 TrailApp 0x00066c19 __65-[FIRAuthBackendRPCImplementation sendVerificationCode:callback:]_block_invoke + 86
7 TrailApp 0x00067fb1 __69-[FIRAuthBackendRPCImplementation postWithRequest:response:callback:]_block_invoke + 1686
8 TrailApp 0x0009ce93 __71-[GTMSessionFetcher invokeFetchCallbacksOnCallbackQueueWithData:error:]_block_invoke + 42
9 TrailApp 0x0009cb4f __66-[GTMSessionFetcher invokeOnCallbackQueue:afterUserStopped:block:]_block_invoke + 474
10 libdispatch.dylib 0x1b241797 + 10
11 libdispatch.dylib 0x1b24e339 + 242
12 libdispatch.dylib 0x1b244b71 + 886
13 libdispatch.dylib 0x1b2501b5 + 326
14 libdispatch.dylib 0x1b25000f + 106
15 libsystem_pthread.dylib 0x1b3f687d _pthread_wqthread + 1040
16 libsystem_pthread.dylib 0x1b3f645c start_wqthread + 8
(Foundation.MonoTouchException)
(null)
2017-07-24 12:31:38.947 TrailApp[1315:865318] critical: Stacktrace:

2017-07-24 12:31:38.947 TrailApp[1315:865318] critical:
Native stacktrace:

2017-07-24 12:31:38.965 TrailApp[1315:865318] critical: 0 TrailApp 0x000eb3c9 mono_handle_native_sigsegv + 234
2017-07-24 12:31:38.965 TrailApp[1315:865318] critical: 1 libsystem_platform.dylib 0x1b3f4259 _sigtramp + 24
2017-07-24 12:31:38.965 TrailApp[1315:865318] critical: 2 libsystem_pthread.dylib 0x1b3fa087 pthread_kill + 62
2017-07-24 12:31:38.965 TrailApp[1315:865318] critical: 3 libsystem_c.dylib 0x1b2d695b abort + 108
2017-07-24 12:31:38.966 TrailApp[1315:865318] critical: 4 TrailApp 0x0019d5f8 xamarin_printf + 0
2017-07-24 12:31:38.966 TrailApp[1315:865318] critical: 5 TrailApp 0x001179bb mono_invoke_unhandled_exception_hook + 100
2017-07-24 12:31:38.966 TrailApp[1315:865318] critical: 6 TrailApp 0x000eb139 mono_handle_exception_internal + 3052
2017-07-24 12:31:38.966 TrailApp[1315:865318] critical: 7 TrailApp 0x000ea549 mono_handle_exception + 30
2017-07-24 12:31:38.966 TrailApp[1315:865318] critical: 8 TrailApp 0x000e3673 mono_arm_throw_exception + 130
2017-07-24 12:31:38.967 TrailApp[1315:865318] critical: 9 TrailApp 0x00354098 throw_exception + 64
2017-07-24 12:31:38.967 TrailApp[1315:865318] critical: 10 TrailApp 0x0019d07c xamarin_process_managed_exception_gchandle + 60
2017-07-24 12:31:38.967 TrailApp[1315:865318] critical: 11 TrailApp 0x0019d038 xamarin_ftnptr_exception_handler + 24
2017-07-24 12:31:38.967 TrailApp[1315:865318] critical: 12 TrailApp 0x001fc9f8 wrapper_native_to_managed_ObjCRuntime_Runtime_throw_ns_exception_intptr + 328
2017-07-24 12:31:38.968 TrailApp[1315:865318] critical: 13 TrailApp 0x0019b6fc xamarin_throw_ns_exception + 52
2017-07-24 12:31:38.968 TrailApp[1315:865318] critical: 14 TrailApp 0x0019dbf4 _ZL17exception_handlerP11NSException + 288
2017-07-24 12:31:38.968 TrailApp[1315:865318] critical: 15 CoreFoundation 0x1bb73e4d + 604
2017-07-24 12:31:38.968 TrailApp[1315:865318] critical: 16 libobjc.A.dylib 0x1adfb30d + 216
[24/07/17, 12:32:44 PM] Varun Tecordeon: 2017-07-24 12:31:38.968 TrailApp[1315:865318] critical: 17 libc++abi.dylib 0x1adef98f + 78
2017-07-24 12:31:38.969 TrailApp[1315:865318] critical: 18 libc++abi.dylib 0x1adef1a3 + 0
2017-07-24 12:31:38.969 TrailApp[1315:865318] critical: 19 libobjc.A.dylib 0x1adfb139 + 0
2017-07-24 12:31:38.969 TrailApp[1315:865318] critical: 20 CoreFoundation 0x1bb78fd1 + 0
2017-07-24 12:31:38.969 TrailApp[1315:865318] critical: 21 CoreFoundation 0x1bb770c3 + 696
2017-07-24 12:31:38.970 TrailApp[1315:865318] critical: 22 CoreFoundation 0x1ba9fdc8 _CF_forwarding_prep_0 + 24
2017-07-24 12:31:38.970 TrailApp[1315:865318] critical: 23 TrailApp 0x00077d13 __110-[FIRPhoneAuthProvider verifyClientAndSendVerificationCodeToPhoneNumber:retryOnInvalidAppCredential:callback:]_block_invoke_2 + 508
2017-07-24 12:31:38.970 TrailApp[1315:865318] critical: 24 TrailApp 0x00066c19 __65-[FIRAuthBackendRPCImplementation sendVerificationCode:callback:]_block_invoke + 86
2017-07-24 12:31:38.970 TrailApp[1315:865318] critical: 25 TrailApp 0x00067fb1 __69-[FIRAuthBackendRPCImplementation postWithRequest:response:callback:]_block_invoke + 1686
2017-07-24 12:31:38.971 TrailApp[1315:865318] critical: 26 TrailApp 0x0009ce93 __71-[GTMSessionFetcher invokeFetchCallbacksOnCallbackQueueWithData:error:]_block_invoke + 42
2017-07-24 12:31:38.971 TrailApp[1315:865318] critical: 27 TrailApp 0x0009cb4f __66-[GTMSessionFetcher invokeOnCallbackQueue:afterUserStopped:block:]_block_invoke + 474
2017-07-24 12:31:38.971 TrailApp[1315:865318] critical: 28 libdispatch.dylib 0x1b241797 + 10
2017-07-24 12:31:38.972 TrailApp[1315:865318] critical: 29 libdispatch.dylib 0x1b24e339 + 242
2017-07-24 12:31:38.972 TrailApp[1315:865318] critical: 30 libdispatch.dylib 0x1b244b71 + 886
2017-07-24 12:31:38.972 TrailApp[1315:865318] critical: 31 libdispatch.dylib 0x1b2501b5 + 326
2017-07-24 12:31:38.972 TrailApp[1315:865318] critical: 32 libdispatch.dylib 0x1b25000f + 106
2017-07-24 12:31:38.973 TrailApp[1315:865318] critical: 33 libsystem_pthread.dylib 0x1b3f687d _pthread_wqthread + 1040
2017-07-24 12:31:38.973 TrailApp[1315:865318] critical: 34 libsystem_pthread.dylib 0x1b3f645c start_wqthread + 8

Thanks.

Sign In or Register to comment.