var myF = function() { };
export function m() {
var fbLoginMng: FBSDKLoginManager = new FBSDKLoginManager();
console.log(nsArray);
try {
fbLoginMng.logInWithReadPermissionsHandler(["email"], myF);
} catch(e){
console.log(e, JSON.stringify(e,null, 2))
}
}
/app/loginpage/login-page.js:27:16: CONSOLE LOG (
email
)
1 0x3cc36d Inspector::JSGlobalObjectInspectorController::reportAPIException(JSC::ExecState*, JSC::JSValue)
2 0xede33 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::JSValue)
3 0xd1716 -[TNSRuntime initWithApplicationPath:]::$_0::__invoke(NSException*)
4 0x2ad7b80 __handleUncaughtException
5 0x2381d3d _objc_terminate()
6 0x314bcf0 std::__terminate(void (*)())
7 0x314b70f __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*)
8 0x2381bae _objc_exception_destructor(void*)
9 0x6071b0 +[FBSDKInternalUtility validateURLSchemes]
10 0x6071d4 +[FBSDKInternalUtility validateURLSchemes]
11 0x630d55 -[FBSDKLoginManager logInParametersWithPermissions:]
12 0x6311f5 -[FBSDKLoginManager logInWithBehavior:]
13 0x6311ae -[FBSDKLoginManager logInWithPermissions:handler:]
14 0x62ff51 -[FBSDKLoginManager logInWithReadPermissions:handler:]
15 0x5f0c9d .LCFI1
16 0x5f127f ffi_call
17 0xe3eca NativeScript::FFICall::executeFFICall(JSC::ExecState*, void (*)())
18 0xceac4 NativeScript::ObjCMethodCall::executeCall(JSC::ExecState*)
19 0x45fd9f JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*)
20 0x45bc46 llint_slow_path_call
21 0x465876 llint_entry
22 0x465886 llint_entry
23 0x465839 llint_entry
24 0x465886 llint_entry
25 0x461446 callToJavaScript
26 0x3303f1 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
27 0x3112d5 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
28 0x13b67d JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
29 0xcf50f NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::callFunction(JSC::JSValue const&, JSC::ArgList const&, void*)
30 0xced8a NativeScript::ObjCMethodCallback::ffiClosureCallback(void*, void**, void*)
31 0xcf5f2 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
Session ended without errors.
I tried to use iOS SDK, but it crash the whole app without recovering:
log
/app/loginpage/login-page.js:27:16: CONSOLE LOG ( email ) 1 0x3cc36d Inspector::JSGlobalObjectInspectorController::reportAPIException(JSC::ExecState*, JSC::JSValue) 2 0xede33 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::JSValue) 3 0xd1716 -[TNSRuntime initWithApplicationPath:]::$_0::__invoke(NSException*) 4 0x2ad7b80 __handleUncaughtException 5 0x2381d3d _objc_terminate() 6 0x314bcf0 std::__terminate(void (*)()) 7 0x314b70f __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) 8 0x2381bae _objc_exception_destructor(void*) 9 0x6071b0 +[FBSDKInternalUtility validateURLSchemes] 10 0x6071d4 +[FBSDKInternalUtility validateURLSchemes] 11 0x630d55 -[FBSDKLoginManager logInParametersWithPermissions:] 12 0x6311f5 -[FBSDKLoginManager logInWithBehavior:] 13 0x6311ae -[FBSDKLoginManager logInWithPermissions:handler:] 14 0x62ff51 -[FBSDKLoginManager logInWithReadPermissions:handler:] 15 0x5f0c9d .LCFI1 16 0x5f127f ffi_call 17 0xe3eca NativeScript::FFICall::executeFFICall(JSC::ExecState*, void (*)()) 18 0xceac4 NativeScript::ObjCMethodCall::executeCall(JSC::ExecState*) 19 0x45fd9f JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*) 20 0x45bc46 llint_slow_path_call 21 0x465876 llint_entry 22 0x465886 llint_entry 23 0x465839 llint_entry 24 0x465886 llint_entry 25 0x461446 callToJavaScript 26 0x3303f1 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) 27 0x3112d5 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) 28 0x13b67d JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) 29 0xcf50f NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::callFunction(JSC::JSValue const&, JSC::ArgList const&, void*) 30 0xced8a NativeScript::ObjCMethodCallback::ffiClosureCallback(void*, void**, void*) 31 0xcf5f2 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*) Session ended without errors.