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

fetchDeferredAppLink receives nil #1562

Closed
andreiYarash opened this issue Nov 6, 2020 · 13 comments
Closed

fetchDeferredAppLink receives nil #1562

andreiYarash opened this issue Nov 6, 2020 · 13 comments

Comments

@andreiYarash
Copy link

In closure of the fetchDeferredAppLink method I receive url-nil! if started after update on iOS 14 and new sdk version. on iOS 13 worked fine! Please tell me what is wrong! I am testing view Facebook tool for deferred deep links!
Thanks

@andreiYarash
Copy link
Author

code of the method https://ibb.co/T4xY4vH

@TimPapler
Copy link

yes, we are having same issue, when getting a deferred link from facebook ads. Please advise.

@madhikarma
Copy link

madhikarma commented Dec 29, 2020

Hi there

We've also been experiencing issue with fetchDeferredAppLink returning a nil URL.

  • We noticed a drop off from a backend API endpoint of ours that receives data after this call.
  • This was in between iOS releases in early December (around midnight)
  • App analytics show the URL to be nil but no Error object either from the completion handler.
  • We have tried upgrading our Facebook iOS SDK versions in our app to the latest versions at the time (twice) but no improvement yet (we are using Swift Package Manager)
  • We have also been looking at our ad setup to see why the URLs are now nil but they all look to be configured correctly.
  • We are seeing this issue on our iOS 14 and iOS 13 users

Currently we're blocked from delivering a new feature to users and also an existing feature no longer works because of the nil URL issue.

Is there any plan for Facebook's iOS SDK team to investigate this issue?

If there is any further info or help we can do to help you debug this let us know

Thank you

@github-actions
Copy link

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Oct 12, 2021
@TimPapler
Copy link

This still has not been resolved? Thats disappointing.

@github-actions github-actions bot removed the Stale label Oct 13, 2021
@joesus
Copy link
Contributor

joesus commented Nov 9, 2021

I remember there was a change where deep linking won't work on devices where the limit ad tracking setting is enabled. Could this be the case here?

@TimPapler
Copy link

Yea, that could be it. 👍

@victor-yn
Copy link

Hello there @joesus , is there any news on this topic? This issue is still happening, both url and error are nil even after the IDFA permission being turned on.

fetchDeferredAppLink is dead w/ the IDFA policy?

@KylinChang
Copy link
Contributor

Hi @victor-yn , it only works when IDFA is not nil and additionally you need to set ATE(AdvertiserTrackingEnabled) to be true to have it work in iOS 14+

@victor-yn
Copy link

Hello @KylinChang , I confirm IDFA is not nil and ATE(AdvertiserTrackingEnabled) is set to true.

Here's a code snippet:

ATTrackingManager.requestTrackingAuthorization { status in
    switch status {
    case .authorized:
        Settings.setAdvertiserTrackingEnabled(true)
        AppLinkUtility.fetchDeferredAppLink { url, error in
            /* At that point, both url and error are nil */
        }
    default: break
    }
}

Both url and error are nil here

@DSPerson
Copy link

DSPerson commented Feb 8, 2023

I found out why. You must turn on You's and facebook's app Advertiser tracking!!!!

@hapiii
Copy link

hapiii commented Dec 22, 2023

I found out why. You must turn on You's and facebook's app Advertiser tracking!!!!

How to actively trigger the facebook ATT popup? I can't find a place to turn on facebook AD tracking

@sulizhan
Copy link

I found out why. You must turn on You's and facebook's app Advertiser tracking!!!!

How to actively trigger the facebook ATT popup? I can't find a place to turn on facebook AD tracking

reopen Facebook application few times, will request ATT permission. but still not work for me. url and error alway nil. disappointing.

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

No branches or pull requests

9 participants