- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我已与 AppFlayer SDK 进行深度链接,通用链接成功打开应用程序意味着深度链接工作正常。
现在的问题是,当应用程序从链接打开时,它不会重定向到它的页面。但是,如果我将应用程序置于后台并置于前台,那么深度链接就会起作用
我遵循这个指南。( link )
AppFlayer 设置代码
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
AppsFlyerTracker.shared().appsFlyerDevKey = "xxxxxxxxxxxx"
AppsFlyerTracker.shared().appleAppID = "xxxxxxx"
AppsFlyerTracker.shared().isDebug = false
AppsFlyerTracker.shared().delegate = self
self.pushNotificationService(application)
objStoryBoard = UIStoryboard(name:"Main", bundle: nil)
return true
}
AppFlayer 代表
Edit :: This method not called when application is open from link of appsflayer marketing
//MARK:
//MARK: appflayer delegate
func onAppOpenAttribution(_ installData: [AnyHashable: Any]) {
NSLog("installData ::%@", installData )
if let link = installData["link"] as? String
{
if link.contains(read_Localizable("titleAppflayer"))
{
if let arrQueryItems = URLComponents(string: link)!.queryItems {
for obj in arrQueryItems {
if obj.name.caseInsensitiveCompare(read_Localizable("appflayerParameter")) == .orderedSame
{
self.redirectAppflayer(withstrUrl: obj.value!)
return
}
}
}
}
}
}
应用的用户事件方式
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool {
// if let url = userActivity.webpageURL
// {
// NSLog("URL :: %@",[url])
// }
if userActivity.webpageURL?.absoluteString.contains(read_Localizable("titleAppflayer")) == true
{
AppsFlyerTracker.shared().continue(userActivity, restorationHandler: restorationHandler)
return true
}
return Branch.getInstance().continue(userActivity)
}
让我知道我做错了什么。
最佳答案
当 AppsFlyerTracker 应该从 didFinishLaunchingWithOptions
调用时,您却从 willFinishLaunchingWithOptions
调用 AppsFlyerTracker。能不能把相关代码搬过来再测试一下?
关于ios - 从链接打开应用程序时,appsflyer 深度链接不起作用(未调用委托(delegate)方法),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45523157/
如标题所示,我正在实现 AppsFlyer iOS SDK 并将该服务集成到我们的应用中。 但我没有看到区分来自开发环境或生产环境的事件的方法。 它真的存在吗? 最佳答案 我问过 AppsFlyer
Appsflyer 不断显示与 GCM 而不是 firebase 的集成,有人可以帮助我如何使用 appsflyer 捕获卸载事件吗? 最佳答案 正如 @Maxim 评论的那样,AppsFlyer 发
我正在使用 AppsFlyer 进行安装和卸载跟踪。我已经浏览了文档并将其集成。我使用他们的 Interation 测试应用程序进行集成验证。 根据文档,如果我们已经有一个接收器监听 INSTALL_
我想跟踪用户如何安装我的 Android 应用程序,无论是通过 google play 商店还是其他任何方式。我选择了 AppsFlyer 来跟踪并引用了一些网站,并且只是编码以单独跟踪应用程序事件,
我正在使用 AppsFlyer 来测试重定向功能。我已经使用 Firebase 实现了深层链接。 我使用 Xcode 在我的设备上启动该应用程序,然后单击下面的链接,该链接将启动浏览器并重定向到 Ap
我为我的示例项目实现了 Appsflyer,但是当我运行它时,服务器返回错误代码 400。 I/AppsFlyer_1.18-117182240: response code: 400 这是我的 Ma
我在应用程序中添加了 AppsFlyer SDK。下面是我在应用程序中添加的代码: 在应用类中: AppsFlyerConversionListener conversionDataListener
尝试使用 AppsFlyer 的 SDK 进行应用内购买服务器收据验证。在 SKStoreKit 的 completeTransaction: 回调中调用了 validateAndTrackInApp
我已经集成了 AppsFlyer SDK 进行分析,它正在跟踪应用程序安装,但不知何故在使用卸载功能时它崩溃了。 我已经在MyApplication中初始化了SDK AppsFlyerLib.getI
我正在关注 this manual将 AppsFlyer 集成到我们的 Android 应用程序中。 当我尝试使用 minifyEnabled true 构建项目时,构建日志中出现以下警告: Warn
在我们的应用中,我们使用 Google 跟踪代码管理器将应用内事件发送到 Firebase 和 AppsFlyer。当我们在本地测试它时,它在日志中正常工作我可以看到 GTM 保存了标签 Google
延迟深度链接不起作用。我正在使用 appsflyer、Android 5.1.1、Android Studio 2.3.3 在 build.gradle 中: compile 'com.appsfly
我正在处理一个现有项目,之前从未使用过 AppsFlyer。 在旧版本的 AppsFlyer 中,我们使用 AppDelegate 中的这些行对其进行了初始化 AppsFlyerTracker
我已将 AppsFlyer SDK 集成到我的项目中。我已经成功地使深层链接发挥作用。我在 OneLink 中创建的任何链接都将根据需要打开该应用程序。但是我无法访问链接参数。我已经实现了以下所有委托
我在我的应用程序中集成了 AppsFlyer。但无法根据我的要求激活和停用跟踪。例如在 facebook 中我们使用: 激活: AppEventsLogger.activateApp(this); 并
我已经成功集成了 appsflyer sdk 来跟踪安装,但遇到了同步问题:我在 AppDelegate 中实现的 onConversionDataReceived 方法调用得太晚了,在继续使用我们的
我已与 AppFlayer SDK 进行深度链接,通用链接成功打开应用程序意味着深度链接工作正常。 现在的问题是,当应用程序从链接打开时,它不会重定向到它的页面。但是,如果我将应用程序置于后台并置于前
我正在尝试在 React native 应用程序中实现 AppsFlyer,但出现此错误“无法读取未定义的属性‘initSdk’” 我导入了 react-native-appsflyer import
我正在将 AppsFlyer 与 Android native 应用程序集成。我想使用延迟深度链接,当用户点击着陆页广告并下载应用程序时,当第一个应用程序打开时,用户直接登陆我想要的 Activity
如标题和由于我公司的营销计划,如果我使用 2 个不同的 Appsflyer 帐户(2 个不同的 appsflyer 开发 key ),我的应用程序可以正常工作以跟踪用户事件吗?或者他们会互相覆盖? 有
我是一名优秀的程序员,十分优秀!