Android 在应用程序被终止或处于后台时收到fcm通知时自动打开应用程序

Android 在应用程序被终止或处于后台时收到fcm通知时自动打开应用程序,android,push-notification,firebase-notifications,Android,Push Notification,Firebase Notifications,如何解决此问题任何人根据此问题向我发送任何解决方案 收到fcm通知但应用程序未打开如何处理 您应该在清单中声明firebase服务类,如下所示: <service android:name="your_service> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" /> </intent-fil

如何解决此问题任何人根据此问题向我发送任何解决方案

收到fcm通知但应用程序未打开如何处理


您应该在清单中声明firebase服务类,如下所示:

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

请向任何人发送此问题的一些解决方案如何在收到通知时自动打开应用程序我也像收到fcm通知一样使用,但我想在收到通知时自动打开应用程序'
 <service android:name="your_service>
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>