Android 应用中心推送与谷歌登录反应本机

Android 应用中心推送与谷歌登录反应本机,android,react-native,gradle,google-login,visual-studio-app-center,Android,React Native,Gradle,Google Login,Visual Studio App Center,我一直在尝试将Microsoft App Center推送与Android上的React Native集成。我在看官方文件。我还将“”模块用于google登录 问题是,当同时使用这两个应用程序时,只有当应用程序位于前台时,才会发出通知。我已经将问题缩小到com.google.gms.google servicesgradle插件(谷歌登录模块所需),该插件似乎向AndroidManifest.xml添加了以下BroadcastReceiver和服务 <receiver android:na

我一直在尝试将Microsoft App Center推送与Android上的React Native集成。我在看官方文件。我还将“”模块用于google登录

问题是,当同时使用这两个应用程序时,只有当应用程序位于前台时,才会发出通知。我已经将问题缩小到com.google.gms.google servicesgradle插件(谷歌登录模块所需),该插件似乎向AndroidManifest.xml添加了以下BroadcastReceiver和服务

<receiver android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver" android:permission="com.google.android.c2dm.permission.SEND" android:exported="true">
    <intent-filter>
        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        <category android:name="se.crossplatform.parkeraapp" />
    </intent-filter>
</receiver>
<service android:name="com.google.firebase.iid.FirebaseInstanceIdService" android:exported="true">
    <intent-filter android:priority="-500">
        <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
    </intent-filter>
</service>

这些似乎覆盖了App center推送模块添加到AndroidManifest.xml中的以下BroadcastReceiver和服务

<receiver android:name="com.microsoft.appcenter.push.PushReceiver" android:permission="com.google.android.c2dm.permission.SEND">
    <intent-filter>
        <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        <category android:name="se.crossplatform.parkeraapp" />
    </intent-filter>
</receiver>
<service android:name="com.microsoft.appcenter.push.TokenService">
    <intent-filter>
        <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
    </intent-filter>
</service>


我不知道如何解决这个问题

你能像中解释的那样在Java(而不是JS)代码中启用详细日志记录吗?然后使用蓝色聊天按钮创建一个记录单,并在应用程序启动时共享日志,以及在推送发送和应接收时共享日志?我通过显式地将firebase core和消息添加到我的gradle依赖项中来修复它。我上次考虑过这样做,因为AppCenter文档声称它不再依赖Firebase@GuillaumePerroti如果您在应用程序中使用Firebase,您确实需要明确的依赖项,因为我们的SDK在库清单中不再具有依赖项。