Firebase Plugin not working properly on Corona Native Projects

I am using Scott Tech Firebase plugins in my Corona Native Project. I am getting this error when i try to get data first time. If data is already saved on database then there is no issue with getData() method. but if data not saved then got this error…
Error line:
PANIC: fatal Lua error: attempt to index a nil value

few More details for my device and build :
I am Testing on : IOS (xcode 9.2, iPhone 5s, IOS 11.2.6), 
Corona build Build: 2018.3287

I am attaching my corona Native Project zip file here. I am testing firebase plugin with Corona Native App template. Please find attachment.

Please let me know what’s wrong there.

Thank you.
Bhavin

 

I am going to look into this tomorrow can you post the full logs?

HI Scott,

Here is full log :

2018-07-21 17:38:16.644567+0530 App[4232:1805065] [DYMTLInitPlatform] platform initialization successful 2018-07-21 17:38:22.821397+0530 App[4232:1804792] Platform: iPhone / iPhone6,2 / 11.2.6 / Apple A7 GPU / OpenGL ES 2.0 Apple A7 GPU - 111.47 / 2018.3287 / en-IN | IN | en\_IN | en 2018-07-21 17:38:23.204859+0530 App[4232:1805180] [Firebase/Messaging][I-IID001001] FIRInstanceID AppDelegate proxy enabled, will swizzle app delegate remote notification handlers. To disable add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO 2018-07-21 17:38:23.248 App[4232] \<Notice\> [Firebase/Messaging][I-IID001001] FIRInstanceID AppDelegate proxy enabled, will swizzle app delegate remote notification handlers. To disable add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO 2018-07-21 17:38:23.727033+0530 App[4232:1805180] [Firebase/Analytics][I-ACS023007] Firebase Analytics v.3800000 started 2018-07-21 17:38:23.727 App[4232] \<Notice\> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.3800000 started 2018-07-21 17:38:23.727866+0530 App[4232:1805180] [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) 2018-07-21 17:38:23.728 App[4232] \<Notice\> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) ================================================================= Main Thread Checker: UI API called on a background thread: -[UIApplication delegate] PID: 4232, TID: 1805045, Thread name: (none), Queue name: FIRAnalyticsQueue, QoS: 9 Backtrace: 4 &nbsp; App &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000100d13720 \_\_38+[FIRAnalytics createAppDelegateProxy]\_block\_invoke + 56 5 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010185128c \_dispatch\_client\_callout + 16 6 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000101851fac dispatch\_once\_f + 120 7 &nbsp; App &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000100d1242c \_\_47+[FIRAnalytics startWithConfiguration:options:]\_block\_invoke\_2 + 104 8 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001018512cc \_dispatch\_call\_block\_and\_release + 24 9 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010185128c \_dispatch\_client\_callout + 16 10&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010185ff80 \_dispatch\_queue\_serial\_drain + 696 11&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001018547ec \_dispatch\_queue\_invoke + 332 12&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000101860f6c \_dispatch\_root\_queue\_drain\_deferred\_wlh + 428 13&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000101868020 \_dispatch\_workloop\_worker\_thread + 652 14&nbsp; libsystem\_pthread.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001863d2f1c \_pthread\_wqthread + 932 15&nbsp; libsystem\_pthread.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001863d2b6c start\_wqthread + 4 2018-07-21 17:38:23.830423+0530 App[4232:1805045] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication delegate] PID: 4232, TID: 1805045, Thread name: (none), Queue name: FIRAnalyticsQueue, QoS: 9 Backtrace: 4 &nbsp; App &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000100d13720 \_\_38+[FIRAnalytics createAppDelegateProxy]\_block\_invoke + 56 5 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010185128c \_dispatch\_client\_callout + 16 6 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000101851fac dispatch\_once\_f + 120 7 &nbsp; App &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000100d1242c \_\_47+[FIRAnalytics startWithConfiguration:options:]\_block\_invoke\_2 + 104 8 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001018512cc \_dispatch\_call\_block\_and\_release + 24 9 &nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010185128c \_dispatch\_client\_callout + 16 10&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x000000010185ff80 \_dispatch\_queue\_serial\_drain + 696 11&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001018547ec \_dispatch\_queue\_invoke + 332 12&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000101860f6c \_dispatch\_root\_queue\_drain\_deferred\_wlh + 428 13&nbsp; libdispatch.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x0000000101868020 \_dispatch\_workloop\_worker\_thread + 652 14&nbsp; libsystem\_pthread.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001863d2f1c \_pthread\_wqthread + 932 15&nbsp; libsystem\_pthread.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x00000001863d2b6c start\_wqthread + 4 2018-07-21 17:38:26.750677+0530 App[4232:1805198] [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist 2018-07-21 17:38:26.751 App[4232] \<Notice\> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist 2018-07-21 17:38:26.829562+0530 App[4232:1805180] TIC Read Status [1:0x0]: 1:57 2018-07-21 17:38:26.830206+0530 App[4232:1805180] TIC Read Status [1:0x0]: 1:57 2018-07-21 17:38:27.292612+0530 App[4232:1805180] TIC Read Status [6:0x0]: 1:57 2018-07-21 17:38:27.292688+0530 App[4232:1805180] TIC Read Status [6:0x0]: 1:57 2018-07-21 17:38:27.514006+0530 App[4232:1805088] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2018-07-21 17:38:27.516246+0530 App[4232:1805088] [MC] Reading from public effective user settings. 2018-07-21 17:38:27.665179+0530 App[4232:1805088] [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled 2018-07-21 17:38:27.665 App[4232] \<Notice\> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled 2018-07-21 17:38:32.895317+0530 App[4232:1805217] TIC Read Status [8:0x0]: 1:57 2018-07-21 17:38:32.895495+0530 App[4232:1805217] TIC Read Status [8:0x0]: 1:57 2018-07-21 17:38:32.960728+0530 App[4232:1805217] [Firebase/Analytics][I-ACS006009] Audience definition is invalid. Audience will not be saved. Audience, error: \<FIRAPBAudience: 0x104ef13b0\>, Error Domain=com.google.gmp.measurement.ErrorDomain Code=9 "Audience filter count out of range" UserInfo={NSLocalizedDescription=Audience filter count out of range} 2018-07-21 17:38:32.960 App[4232] \<Error\> [Firebase/Analytics][I-ACS006009] Audience definition is invalid. Audience will not be saved. Audience, error: \<FIRAPBAudience: 0x104ef13b0\>, Error Domain=com.google.gmp.measurement.ErrorDomain Code=9 "Audience filter count out of range" UserInfo={NSLocalizedDescription=Audience filter count out of range} 2018-07-21 17:38:32.965252+0530 App[4232:1805043] [Firebase/Analytics][I-ACS006009] Audience definition is invalid. Audience will not be saved. Audience, error: \<FIRAPBAudience: 0x10b41cd50\>, Error Domain=com.google.gmp.measurement.ErrorDomain Code=9 "Audience filter count out of range" UserInfo={NSLocalizedDescription=Audience filter count out of range} 2018-07-21 17:38:32.965 App[4232] \<Error\> [Firebase/Analytics][I-ACS006009] Audience definition is invalid. Audience will not be saved. Audience, error: \<FIRAPBAudience: 0x10b41cd50\>, Error Domain=com.google.gmp.measurement.ErrorDomain Code=9 "Audience filter count out of range" UserInfo={NSLocalizedDescription=Audience filter count out of range} 2018-07-21 17:38:33.384168+0530 App[4232:1805217] TIC Read Status [9:0x0]: 1:57 2018-07-21 17:38:33.384248+0530 App[4232:1805217] TIC Read Status [9:0x0]: 1:57 2018-07-21 17:39:00.422759+0530 App[4232:1804792] get data : myData23 PANIC: fatal Lua error: attempt to index a nil value

Thank you.

Hey Scott, Did you get a chance to check it ?