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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ios] fetchDeferredAppLink not work #50

Closed
tree1891 opened this issue Jun 4, 2021 · 8 comments
Closed

[ios] fetchDeferredAppLink not work #50

tree1891 opened this issue Jun 4, 2021 · 8 comments
Labels
needs more info waiting on original poster to provide details no reproduction needs a minimal reproducible example

Comments

@tree1891
Copy link

tree1891 commented Jun 4, 2021

馃悰 Bug Report

AppLink.fetchDeferredAppLink() is called, but app-ads-helper check failed.
image

Code Example

AppLink.fetchDeferredAppLink().then(data => {
  console.debug("Deferred App Link: " + data);
})

Environment

System:
OS: macOS 11.4
CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Memory: 2.51 GB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.17.0 - /usr/local/bin/node
Yarn: Not Found
npm: 7.11.2 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /Users/pbg/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.0 => 0.64.0
react-native-macos: Not Found

@invyctus92
Copy link

Resolved ? I have the same problem too but android doesn't work either. For android what have you configured ?

@tree1891
Copy link
Author

@invyctus92 no special for android.

@thebergamo thebergamo added no reproduction needs a minimal reproducible example needs more info waiting on original poster to provide details labels Jun 23, 2021
@mikehardy
Copy link
Collaborator

Still missing reproduction, no activity. Can always reopen, but closing to clean issue list.

@danielmark0116
Copy link

Android is working fine for me. In my case the exact same thing happens for iOS.

I have a regular setup in place, as in the docs. The only thing that have in my codebase is the SDK initialization, a method setAdvertiserTrackingEnabled(true) invoked at the startup and AppLinks.fetchDefferedAppLink run on the app mount, lets say.

Having it tested on my iPhone (iOS 14+) I could not fetch the link, it always is nil (no errors though)

In order to try and resolve it, I created my own fork with updated iOS Facebook SDKs (had to remove/replace some methods that are removed). Still NOT WORKING

Then, I turned on my old iPhone with iOS 12.4.6 and went to Settings -> Privacy -> Advertisement -> Reset advertisement identity. Then, when I used the deferred links debugger, I was able to fetch provided deep link.

Unfortunately, having done the aforementioned steps on iOS 12, it still does not work on iOS 14

@mikehardy
Copy link
Collaborator

@danielmark0116 this could be really really valuable as the start of a fix for #55

n order to try and resolve it, I created my own fork with updated iOS Facebook SDKs (had to remove/replace some methods that are removed).

@sarafcredable
Copy link

@danielmark0116 How android works for you. Can you please tell us the setup for android? And did you get the iOS to work?
In my case both are not working, ios returns undefined and android returns null.

Im doing this after getting user consent,

Settings.setAdvertiserTrackingEnabled(true).then(() => { Settings.initializeSDK(); AppLink.fetchDeferredAppLink().then((link) => console.log('Link ', link)); //undefined in iOS and null in android });

@sarafcredable
Copy link

Please check this #234

@VladikStylish
Copy link

DK initialization,

Hi brother,please can you share yours code about initialize SDK , I want to resolve problem 'null' deeplink at Android. Its still working for Android?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info waiting on original poster to provide details no reproduction needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

7 participants