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

Facebook Deferred DeepLink is not working anymore #1251

Open
5 tasks done
Nikhil77sutara opened this issue Jun 19, 2024 · 0 comments
Open
5 tasks done

Facebook Deferred DeepLink is not working anymore #1251

Nikhil77sutara opened this issue Jun 19, 2024 · 0 comments

Comments

@Nikhil77sutara
Copy link

Checklist before submitting a bug report

Java version

1.8

Android version

Android 14

Android SDK version

34.0.0

Installation platform & version

Maven

Package

AppLinks

Goals

The deferred deep link should be in working state.

Expected results

If i select both the tickmarks in facebook ads helper (send notification and send deferred) than it should send me an notification with deferred deep link data.

Actual results

For us the deferred deep link is not working .
whenever we are trying to test it , first of all if we are clicking on both the ticks(send notification and send deferred) in facebook ads helper deep link testing tool than its showing
Screenshot 2024-06-19 153652
We are only able to select the send notification.
After clicking on send notification we are recieveing an notification to our device and if we open it than we are getting the appLinkData as null.
I tried to contact facebook support team also multiple times but not get any response.
Also i have created an issue in the facebook community .
https://developers.facebook.com/community/threads/821881229791969/

Steps to reproduce

Facebook SDK Version
[v16.0.0]

Device models
[Android 11, Lenovo TB-7306F]

We were implementing Deferred Deeplink with our app.
For this, we went through the following documentation.
https://developers.facebook.com/docs/app-ads/deep-linking/
This way, we completed our implementation.

And for testing we using
https://developers.facebook.com/tools/app-ads-helper/?id=925486975940053
And we followed the following steps for testing.
On the testing webpage, We selected the app, and clicked "Deep Link Tester"
After filling the "deep link" and selecting send notification tick box, we clicked "Send to Android".
Now in the Mobile FB App we got a notification mentioned "Tap to launch your deep link"
Now uninstalled our app then click on the button "Tap to launch your deep link"
It took us to the play store to download our app.
Here we installed our app from Android Studio in Debug mode.
But for each testing, we were getting "appLinkData null"
And if we selects both the ticks than we are getting a popup with a message
"The link has been queued and is pending you doing a first app launch on your device. This means you need to delete the app, then re-install and open your app. Please first verify your app can handle deferred deep linking by checking the iOS and Android setup information located above."
We did a lot of debugging and troubleshoot but did not get any success.
Screenshot 2024-06-19 153652

So the result of our findings is as follows.
This Account Facebook App is having some issues.
Its opening the app but the "appLinkData" it giving value null.

Code samples & details

public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FacebookSdk.setAutoInitEnabled(true);
        FacebookSdk.fullyInitialize();
        Log.d(TAG, "onCreate: Initializing MainActivity and FacebookSdk");

        AppLinkData.fetchDeferredAppLinkData(this, new AppLinkData.CompletionHandler() {
            @Override
            public void onDeferredAppLinkDataFetched(AppLinkData appLinkData) {
                Log.d(TAG, "onDeferredAppLinkDataFetched: AppLinkData: " + appLinkData);
                if (appLinkData != null) {
                } else {
                   
                }
            }
        });
    }
}


The below code is for the AndroidManifest.xml

  <activity
            android:name=".MainActivity"
            android:screenOrientation="portrait"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <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="example"
                    android:host="app"
                />
            </intent-filter>

            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>

The Below one is from build.gradle file

    implementation 'com.facebook.android:facebook-android-sdk:16.0.0'
    implementation 'com.facebook.android:facebook-core:[12.2.0]'
    implementation 'com.facebook.android:facebook-applinks:[12.2.0]'
Playgirlkaybraz11 referenced this issue Jun 19, 2024
Reviewed By: mingcaozhang

Differential Revision: D40125158

fbshipit-source-id: 58e7d605b63f24d0e8c35abb046d0ebae2edf9ae
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

1 participant