Firebase 动态链接无法在 iOS 11.3.1 上安装应用程序

ord*_*n09 2 firebase firebase-dynamic-links

如果用户尚未安装,Firebase 动态链接将无法在 iOS 11.3.1 上存活。还有其他人遇到这个问题吗?这在 iOS 11.3.1 之前运行良好

重现步骤::

  1. 点击 FDL 链接
  2. 用户重定向到应用商店
  3. 用户安装应用
  4. 用户打开应用
  5. FDL 参数未通过
- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication
         annotation:(id)annotation {

//the url here returns:
//google/link/?match_type=none&match_message=No pre-install link matched for this device.
or     
//google/link/?dismiss=1&is_weak_match=1

}
Run Code Online (Sandbox Code Playgroud)

ord*_*n09 5

我已经向 Firebase 报告了这个问题,他们仍在努力修复。

https://github.com/firebase/firebase-ios-sdk/issues/1244

同时,解决方法是关闭forcedRedirectEnabled。

FIRDynamicLinkNavigationInfoParameters *navigationParams = [FIRDynamicLinkNavigationInfoParameters parameters];
    navigationParams.forcedRedirectEnabled = NO;
    components.navigationInfoParameters = navigationParams;
Run Code Online (Sandbox Code Playgroud)

或者,如果您使用管理控制台生成链接,则需要取消选中跳过应用程序预览页面设置。

请注意,这意味着用户会在重定向到应用商店之前看到一个插页式页面,这并不理想,但至少会传递 FDL 参数。

希望这可以帮助某人。

干杯!