Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Firebase Plugin not working properly on Corona Native Projects
Started by BK PANARA Jul 17 2018 10:29 PM

3 replies to this topic
corona native firebase getdata
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

BK PANARA

[GLOBAL: userInfoPane.html]
BK PANARA
  • Enthusiast

  • 65 posts
  • Corona SDK

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


 

Attached Files

  • Attached File  App.zip   369.66KB   4 downloads


[TOPIC: post.html]
#2

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,807 posts
  • Enterprise

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



[TOPIC: post.html]
#3

BK PANARA

[GLOBAL: userInfoPane.html]
BK PANARA
  • Enthusiast

  • 65 posts
  • Corona SDK

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   App                                 0x0000000100d13720 __38+[FIRAnalytics createAppDelegateProxy]_block_invoke + 56
5   libdispatch.dylib                   0x000000010185128c _dispatch_client_callout + 16
6   libdispatch.dylib                   0x0000000101851fac dispatch_once_f + 120
7   App                                 0x0000000100d1242c __47+[FIRAnalytics startWithConfiguration:options:]_block_invoke_2 + 104
8   libdispatch.dylib                   0x00000001018512cc _dispatch_call_block_and_release + 24
9   libdispatch.dylib                   0x000000010185128c _dispatch_client_callout + 16
10  libdispatch.dylib                   0x000000010185ff80 _dispatch_queue_serial_drain + 696
11  libdispatch.dylib                   0x00000001018547ec _dispatch_queue_invoke + 332
12  libdispatch.dylib                   0x0000000101860f6c _dispatch_root_queue_drain_deferred_wlh + 428
13  libdispatch.dylib                   0x0000000101868020 _dispatch_workloop_worker_thread + 652
14  libsystem_pthread.dylib             0x00000001863d2f1c _pthread_wqthread + 932
15  libsystem_pthread.dylib             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   App                                 0x0000000100d13720 __38+[FIRAnalytics createAppDelegateProxy]_block_invoke + 56
5   libdispatch.dylib                   0x000000010185128c _dispatch_client_callout + 16
6   libdispatch.dylib                   0x0000000101851fac dispatch_once_f + 120
7   App                                 0x0000000100d1242c __47+[FIRAnalytics startWithConfiguration:options:]_block_invoke_2 + 104
8   libdispatch.dylib                   0x00000001018512cc _dispatch_call_block_and_release + 24
9   libdispatch.dylib                   0x000000010185128c _dispatch_client_callout + 16
10  libdispatch.dylib                   0x000000010185ff80 _dispatch_queue_serial_drain + 696
11  libdispatch.dylib                   0x00000001018547ec _dispatch_queue_invoke + 332
12  libdispatch.dylib                   0x0000000101860f6c _dispatch_root_queue_drain_deferred_wlh + 428
13  libdispatch.dylib                   0x0000000101868020 _dispatch_workloop_worker_thread + 652
14  libsystem_pthread.dylib             0x00000001863d2f1c _pthread_wqthread + 932
15  libsystem_pthread.dylib             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.



[TOPIC: post.html]
#4

BK PANARA

[GLOBAL: userInfoPane.html]
BK PANARA
  • Enthusiast

  • 65 posts
  • Corona SDK

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




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: corona native, firebase, getdata