Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setCurrentScreen cannot be called while no activity active #935

Open
TheGrandDuelist opened this issue Aug 23, 2019 · 3 comments
Open

setCurrentScreen cannot be called while no activity active #935

TheGrandDuelist opened this issue Aug 23, 2019 · 3 comments

Comments

@TheGrandDuelist
Copy link

Step 1: Describe your environment
Android device: Mi 5C
Android OS version: 7.1.2
Firebase-Core version: 17.0.0
Step 2: Describe the problem:
Steps to reproduce:
Calling setCurrentScreen inside onResume()
Observed Results:
In our app, when I called setCurrentScreen , got "setCurrentScreen cannot be called while no activity active".
Tried on a new Application, it works well
Relevant Code:
Calling setCurrentScreen inside onResume()

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@samtstern
Copy link
Contributor

@TheGrandDuelist thanks for filing this. Does the behavior change if you put the setCurrentScreen call in onStart?

@Maxwell6635
Copy link

Maxwell6635 commented Sep 18, 2019

@samtstern still the same it will show same error, and I also found out hitting this error "setCurrentScreen cannot be called with the same class and name"

I am using com.google.firebase:firebase-analytics:17.2.0 this version.

09-18 15:07:56.487 W/FA      (29129): setCurrentScreen cannot be called while no activity active
09-18 15:07:56.614 I/FA      (29129): App measurement is starting up, version: 18202
09-18 15:07:56.614 I/FA      (29129): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-18 15:07:56.614 I/FA      (29129): Faster debug mode event logging enabled. To disable, run:
09-18 15:07:56.614 I/FA      (29129):   adb shell setprop debug.firebase.analytics.app .none.
09-18 15:07:56.924 I/FA      (29129): Tag Manager is not found and thus will not be used
09-18 15:08:09.249 W/FA      (29129): setCurrentScreen cannot be called while no activity active
09-18 15:08:18.544 W/FA      (29129): setCurrentScreen cannot be called with the same class and name
09-18 15:08:19.412 W/FA      (29129): setCurrentScreen cannot be called while no activity active
09-18 15:08:45.962 W/FA      (29129): setCurrentScreen cannot be called with the same class and name
09-18 15:18:42.454 W/FA      (29129): setCurrentScreen cannot be called with the same class and name
09-18 15:18:48.987 W/FA      (29129): setCurrentScreen cannot be called with the same class and name
09-18 15:19:04.119 W/FA      (29129): setCurrentScreen cannot be called with the same class and name
09-18 15:20:46.522 W/FA      (29129): setCurrentScreen cannot be called with the same class and name
09-18 15:21:28.803 W/FA      (29129): setCurrentScreen cannot be called with the same class and name
09-18 15:21:30.932 W/FA      (29129): setCurrentScreen cannot be called while no activity active
09-18 15:23:22.797 W/FA      (29129): setCurrentScreen cannot be called with the same class and name
09-18 15:23:24.666 W/FA      (29129): setCurrentScreen cannot be called while no activity active
09-18 15:27:40.643 W/FA      (31484): setCurrentScreen cannot be called while no activity active
09-18 15:27:41.046 I/FA      (31484): App measurement is starting up, version: 18202
09-18 15:27:41.047 I/FA      (31484): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-18 15:27:41.047 I/FA      (31484): Faster debug mode event logging enabled. To disable, run:
09-18 15:27:41.047 I/FA      (31484):   adb shell setprop debug.firebase.analytics.app .none.
09-18 15:27:41.338 I/FA      (31484): Tag Manager is not found and thus will not be used
09-18 15:28:16.317 W/FA      (31484): setCurrentScreen cannot be called while no activity active
09-18 15:28:31.617 W/FA      (31484): setCurrentScreen cannot be called with the same class and name
09-18 15:30:08.355 I/FA      (31876): Collection disabled with firebase_analytics_collection_enabled=0
09-18 15:30:08.370 I/FA      (31876): App measurement is starting up, version: 18202
09-18 15:30:08.370 I/FA      (31876): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-18 15:30:08.370 I/FA      (31876): To enable faster debug mode event logging run:
09-18 15:30:08.370 I/FA      (31876):   adb shell setprop debug.firebase.analytics.app com.google.android.youtube
09-18 15:33:01.943 W/FA      (31484): setCurrentScreen cannot be called with the same class and name
09-18 15:33:03.298 W/FA      (31484): setCurrentScreen cannot be called while no activity active
09-18 15:33:05.082 W/FA      (31484): setCurrentScreen cannot be called with the same class and name
09-18 15:38:49.705 W/FA      (  646): setCurrentScreen cannot be called while no activity active
09-18 15:38:49.838 I/FA      (  646): App measurement is starting up, version: 18202
09-18 15:38:49.838 I/FA      (  646): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-18 15:38:49.838 I/FA      (  646): Faster debug mode event logging enabled. To disable, run:
09-18 15:38:49.838 I/FA      (  646):   adb shell setprop debug.firebase.analytics.app .none.
09-18 15:38:50.122 I/FA      (  646): Tag Manager is not found and thus will not be used
09-18 15:40:28.678 W/FA      (  646): setCurrentScreen cannot be called with the same class and name
09-18 15:40:29.730 W/FA      (  646): setCurrentScreen cannot be called with the same class and name
09-18 15:41:42.012 W/FA      (  646): setCurrentScreen cannot be called with the same class and name
09-18 15:41:42.762 W/FA      (  646): setCurrentScreen cannot be called with the same class and name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants