Description
When using the firebase plugin together with the oauth2 plugin, the app crashes with the attached error.
@NathanWalker : I just tried to initialize the firebase and oauth plugins sequentially but this does not help. I also realized that the app crashes when I do not call firebase.init at all. It might be that the firebase plugin initializes itself once the plugin is loaded? Unfortunately I have not found the github sources of the firebase plugin you showed.
Please note, the bug I mentioned in #134 (comment) is a different one. There only the namespace for a function call was missing. For the issue here it would be best to look into the example sources I have provided
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught TypeError: this.handleIncomingUrl is not a function
at
TnsOAuthClientAppDelegate.applicationOpenURLOptions(file: node_modules/nativescript-oauth2-ext/delegate/index.ios.js:14:0)
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught TypeError: this.handleIncomingUrl is not a function
at
TnsOAuthClientAppDelegate.applicationOpenURLOptions(file: node_modules/nativescript-oauth2-ext/delegate/index.ios.js:14:0)
', reason: '(null)'
*** First throw call stack:
(
0 CoreFoundation 0x0000000115150e6e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x0000000114fbc9b2 objc_exception_throw + 48
2 NativeScript 0x0000000110a302b4 _ZN3tns21NativeScriptException15OnUncaughtErrorEN2v85LocalINS1_7MessageEEENS2_INS1_5ValueEEE + 882
3 NativeScript 0x0000000110e5d668 _ZN2v88internal14MessageHandler25ReportMessageNoExceptionsEPNS0_7IsolateEPKNS0_15MessageLocationENS0_6HandleINS0_6ObjectEEENS_5LocalINS_5ValueEEE + 344
4 NativeScript 0x0000000110e5d4c9 _ZN2v88internal14MessageHandler13ReportMessageEPNS0_7IsolateEPKNS0_15MessageLocationENS0_6HandleINS0_15JSMessageObjectEEE<…>
These issues are very likely related and can be closed once this one is fixed:
#113 (comment)
EddyVerbruggen/nativescript-plugin-firebase#1629