Firebase dynamic link将打开应用程序,但不会为未调用的侦听活动(Android)创建应用程序

Firebase dynamic link将打开应用程序,但不会为未调用的侦听活动(Android)创建应用程序,android,android-intent,firebase,firebase-dynamic-links,dynamic-links,Android,Android Intent,Firebase,Firebase Dynamic Links,Dynamic Links,我正在尝试将Firebase动态链接集成到我的应用程序(目前没有使用其他Firebase组件)。我已经完成了文档中给出的所有步骤,但是我无法使用 AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, this, autoLaunchDeepLink); 除此之外,我还试图在意向过滤器所连接的活动的onCreate上记录并显示toast,但看起来即使onCreate也没有被调用。如果我删除了意图过滤器,动态链接将打开我的启动器活动。 这就是

我正在尝试将Firebase动态链接集成到我的应用程序(目前没有使用其他Firebase组件)。我已经完成了文档中给出的所有步骤,但是我无法使用

AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, this, autoLaunchDeepLink);
除此之外,我还试图在意向过滤器所连接的活动的onCreate上记录并显示toast,但看起来即使onCreate也没有被调用。如果我删除了意图过滤器,动态链接将打开我的启动器活动。 这就是我添加意图过滤器的方式

<activity android:name=".receiver.DynamicLinkReceiver">
        <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:host="licsuperagent.com" android:scheme="http"/>
            <data android:host="licsuperagent.com" android:scheme="https"/>
        </intent-filter>
</activity>

我做错了什么?

问题是因为使用了为发布版本包生成的google-services.json文件,但我在开发版本中使用了相同的文件。 谢谢大家的帮助


任何有同样问题的人,只需要从Firebase为您的开发构建包创建另一个google-services.json文件

确保在API控制台上启用AppInvite.API。您的url可能有问题。从Firebase控制台获取长版本并进行调查。如果您没有发现任何问题,请将其添加到您的问题中。我下载的google-services.json文件有问题,但包名有错误。抱歉浪费了您宝贵的时间。您应该回答自己的问题并将其标记为已解决@HaranSivaram
com.xx.xx D/FirebaseApp: Notifying background state change listeners.