且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

设备未收到 Firebase 云消息通知

更新时间:2022-06-10 22:15:23

您已将服务置于应用程序标签之外.把底部改成这个.

You have placed your service outside the application tag. Change bottom to this.

<service
    android:name=".NotificationGenie">
    <intent-filter>
        <action android:name="com.google.firebase.MESSAGING_EVENT"/>
    </intent-filter>
</service>

</application>