Skip to content

App Install (MOBILE_APP_INSTALL) not being reported in events manager and test events #1094

Description

@spiritinlife

Checklist before submitting a bug report

Java version

11.0.12

Android version

API 30, Android 11

Android SDK version

14.1.0

Installation platform & version

Gradle

Package

Core & AppEvents

Goals

Being able to use App Installs as an optimisation for facebook ad campaigns.

Expected results

On a fresh install i am expecting the App install ( MOBILE_APP_INSTALL ) to appear on test events and in events manager.

Actual results

While i do see the event MOBILE_APP_INSTALL being fired by using client debugging

 FacebookSdk.addLoggingBehavior(LoggingBehavior.APP_EVENTS);
 FacebookSdk.addLoggingBehavior(LoggingBehavior.REQUESTS);
 FacebookSdk.addLoggingBehavior(LoggingBehavior.INCLUDE_RAW_RESPONSES);

The event is never shown in test events and the reported APP install events in Events Manager for my app are greatly under reported, practically not reported at all.

Important to note that other automatic logged events such as activate app are being correctly reported.

Steps to reproduce

Fresh install on an application with sdk 14.1.0 should reproduce the issue.

Code samples & details

// INSERT YOUR CODE HERE

No code should be required since we rely on AutoInitEnabled and AutoLogAppEventsEnabled. Check configuration of AndroidManifest bellow.

AndroidManifest configuration 

...
        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/facebook_app_id" />

        <meta-data 
           android:name="com.facebook.sdk.ClientToken" 
           android:value="@string/facebook_client_token"/>

        <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled"
           android:value="true"/>

        <meta-data android:name="com.facebook.sdk.AutoInitEnabled"
           android:value="true"/>

        <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled"
            android:value="true"/>
....
  <activity
            android:name="com.facebook.FacebookActivity"
            android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
            android:label="@string/app_name" />

        <activity
            android:name="com.facebook.CustomTabActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:scheme="@string/fb_login_protocol_scheme" />
            </intent-filter>
        </activity>
....

Sample log that shows the event being sent

 D/FacebookSDK.Request: Request:
      Id:	6
      URL:	https://graph.facebook.com/v14.0/***************/activities
      Method:	POST
      User-Agent:	FBAndroidSDK.14.1.0
      Content-Type:	application/x-www-form-urlencoded
      Parameters:
          access_token:	***************|********************************
          format:	json
          sdk:	android
          debug:	info
      Attachments:
          event:	MOBILE_APP_INSTALL
          anon_id:	**********-****-****-****-************
          application_tracking_enabled:	true
          advertiser_id_collection_enabled:	true
          advertiser_id:	*****-****-****-****-************
          advertiser_tracking_enabled:	true
          extinfo:	["a2","******",4263,"2.0.119","11","2201117TY","en_US","","NoCarrier",1080,2177,"2.75",8,-1,-1,""]
          application_package_name:	****

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions