Skip to content

Can't get android logs - Nuxt3 - Ionic #59

@cnkbekir

Description

@cnkbekir

Description

I installed the plugin by following the instructions in readme. It running well on ios app. But doesn't send any log to newrelic on Android app. I tried both "android:agent-gradle-plugin:7.0.0" and "android:agent-gradle-plugin:7.1.0".

I didn't publish the app on google play. I tried with apk on my mobile phone and virtual device on macbook.

Steps to Reproduce

Expected Behavior

Send logs to new relic dashboard.

Relevant Logs / Console output

2023-10-03 16:18:37.103 10248-10248 Capacitor com.otomentor.portal D Registering plugin instance: NewRelicCapacitorPlugin
2023-10-03 16:18:38.036 10248-10248 Capacitor/Plugin com.otomentor.portal V To native (Capacitor plugin): callbackId: 29659557, pluginId: NewRelicCapacitorPlugin, methodName: start
2023-10-03 16:18:38.038 10248-10248 Capacitor com.otomentor.portal V callback: 29659557, pluginId: NewRelicCapacitorPlugin, methodName: start, methodData: {"appKey":"","agentConfiguration":{"analyticsEventEnabled":true,"webViewInstrumentation":true,"crashReportingEnabled":true,"interactionTracingEnabled":true,"networkRequestEnabled":true,"networkErrorRequestEnabled":true,"httpResponseBodyCaptureEnabled":true,"loggingEnabled":true,"logLevel":"INFO","sendConsoleEvents":true}}
2023-10-03 16:18:38.049 10248-10248 Capacitor/Plugin com.otomentor.portal V To native (Capacitor plugin): callbackId: 29659560, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration
2023-10-03 16:18:38.049 10248-10248 Capacitor com.otomentor.portal V callback: 29659560, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration, methodData: {}
2023-10-03 16:18:38.052 10248-10248 Capacitor/Plugin com.otomentor.portal V To native (Capacitor plugin): callbackId: 29659561, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration
2023-10-03 16:18:38.052 10248-10248 Capacitor com.otomentor.portal V callback: 29659561, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration, methodData: {}
2023-10-03 16:18:38.113 10248-10513 newrelic com.otomentor.portal I Loaded configuration: HarvestConfiguration{collect_network_errors=true, cross_process_id='null', data_report_period=60, data_token=[0, 0], error_limit=50, report_max_transaction_age=600, report_max_transaction_count=1000, response_body_limit=2048, server_timestamp=0, stack_trace_limit=100, activity_trace_max_size=65534, activity_trace_max_report_attempts=1, activity_trace_min_utilization=0.30000001192092896, at_capture=ActivityTraceConfiguration{maxTotalTraceCount=1}, priority_encoding_key=d67afc830dab717fd163bfcb0b8b88423e9a1a3b, account_id=, application_id=, trusted_account_key=}
2023-10-03 16:18:38.197 10248-10248 Capacitor/Plugin com.otomentor.portal V To native (Capacitor plugin): callbackId: 29659563, pluginId: NewRelicCapacitorPlugin, methodName: recordError
2023-10-03 16:18:38.197 10248-10248 Capacitor com.otomentor.portal V callback: 29659563, pluginId: NewRelicCapacitorPlugin, methodName: recordError, methodData: {"name":"Error","message":"TypeError: Failed to register a ServiceWorker for scope ('http://localhost/') with script ('http://localhost/sw.js'): An unknown error occurred when fetching the script.","stack":"no stack","isFatal":false}
2023-10-03 16:18:38.263 10248-10248 Capacitor/Plugin com.otomentor.portal V To native (Capacitor plugin): callbackId: 29659564, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration
2023-10-03 16:18:38.263 10248-10248 Capacitor com.otomentor.portal V callback: 29659564, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration, methodData: {}
2023-10-03 16:18:38.265 10248-10248 Capacitor/Plugin com.otomentor.portal V To native (Capacitor plugin): callbackId: 29659565, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration
2023-10-03 16:18:38.266 10248-10248 Capacitor com.otomentor.portal V callback: 29659565, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration, methodData: {}
2023-10-03 16:18:38.268 10248-10248 Capacitor/Plugin com.otomentor.portal V To native (Capacitor plugin): callbackId: 29659566, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration
2023-10-03 16:18:38.268 10248-10248 Capacitor com.otomentor.portal V callback: 29659566, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration, methodData: {}
2023-10-03 16:18:38.270 10248-10248 Capacitor/Plugin com.otomentor.portal V To native (Capacitor plugin): callbackId: 29659567, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration
2023-10-03 16:18:38.270 10248-10248 Capacitor com.otomentor.portal V callback: 29659567, pluginId: NewRelicCapacitorPlugin, methodName: getAgentConfiguration, methodData: {}
2023-10-03 16:18:38.278 10248-10513 newrelic com.otomentor.portal I Analytics Controller initialized: enabled[true]
2023-10-03 16:18:38.283 10248-10513 newrelic com.otomentor.portal I Measurement Engine initialized.
2023-10-03 16:18:38.288 10248-10513 newrelic com.otomentor.portal I New Relic Agent v7.0.0
2023-10-03 16:18:38.313 10248-10678 newrelic com.otomentor.portal I Connecting, saved state is not available: DataToken{accountId=0, agentId=0}
2023-10-03 16:18:38.319 10248-10678 CapacitorCookies com.otomentor.portal I Getting cookies at: 'https://gov-mobile-collector.newrelic.com/mobile/v4/connect'

Your Environment

Nuxt3
Ionic
Phone with Android version 11 / Virtual Device with Android version 13

Additional context

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions