[SOLVED]SDKBOX Firebase AppMeasurementService not registered/enabled

Hello
I am integrating sdkbox firebase to cocos2dx v3.3 lua game
I created new project and did all steps from http://docs.sdkbox.com/en/plugins/firebase/v3-lua/

But I am getting logcat

09-21 19:17:25.297 E/FA      (12846): AppMeasurementService not registered/enabled
09-21 19:17:25.298 E/FA      (12846): Uploading is not possible. App measurement disabled

Below is full logcat

09-21 19:17:25.162 V/FA      (12846): Registered activity lifecycle callback
09-21 19:17:25.208 V/FA      (12846): Cancelling job. JobID: 1793668389
09-21 19:17:25.272 V/FA      (12846): Collection enabled
09-21 19:17:25.272 V/FA      (12846): App package, google app id: test.game.com, 1:700757031408:android:9453103ce0cb4893478535
09-21 19:17:25.274 I/FA      (12846): App measurement is starting up, version: 12211
09-21 19:17:25.274 I/FA      (12846): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-21 19:17:25.275 I/FA      (12846): Faster debug mode event logging enabled. To disable, run:
09-21 19:17:25.275 I/FA      (12846):   adb shell setprop debug.firebase.analytics.app .none.
09-21 19:17:25.275 D/FA      (12846): Debug-level message logging enabled
09-21 19:17:25.278 V/FA      (12846): Persisting first open: 1600705045134
09-21 19:17:25.297 E/FA      (12846): AppMeasurementService not registered/enabled
09-21 19:17:25.298 E/FA      (12846): Uploading is not possible. App measurement disabled
09-21 19:17:25.298 D/FA      (12846): Setting app measurement enabled (FE): true
09-21 19:17:25.299 V/FA      (12846): Setting measurementEnabled: true
09-21 19:17:25.330 W/FA      (12846): Failed to retrieve Firebase Instance Id
09-21 19:17:25.337 V/FA      (12846): Checking service availability
09-21 19:17:25.343 V/FA      (12846): Service available
09-21 19:17:25.344 V/FA      (12846): Setting useService: true
09-21 19:17:25.350 V/FA      (12846): Connecting to remote service
09-21 19:17:25.393 I/FA      (12846): Tag Manager is not found and thus will not be used
09-21 19:17:25.404 D/FA      (12846): Connected to remote service
09-21 19:17:25.404 V/FA      (12846): Processing queued up service tasks: 1

Below is full project code of mine.

I am struggling for 5 days for this issue, but still can’t find why…
Can anyone take a look and help me please?
@yinjimmy could you please take a look for me ?
Many thank you

have your manifest include this?

<service
            android:enabled="true"
            android:exported="false"
            android:name="com.google.android.gms.measurement.AppMeasurementService" />
        <service
            android:enabled="true"
            android:exported="false"
            android:name="com.google.android.gms.measurement.AppMeasurementJobService"
            android:permission="android.permission.BIND_JOB_SERVICE" />
        <receiver
            android:enabled="true"
            android:exported="false"
            android:name="com.google.android.gms.measurement.AppMeasurementReceiver">
            <intent-filter>
                <action android:name="com.google.android.gms.measurement.UPLOAD" />
            </intent-filter>
        </receiver>
        <receiver
            android:enabled="true"
            android:exported="true"
            android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
            android:permission="android.permission.INSTALL_PACKAGES">
            <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
        </receiver>
2 Likes

@htlxyz
Many thank you for your help
Problem is resolved and I am now happy
You are genius
Thank you again

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.