Is the Firebase Cloud Messaging instant messaging format specific to the platform?

I use Firebase Cloud Messaging to send notifications to the clients of my application. Clients can be any of the three supported platforms (ios, android, web).

I want the user to be able to click on the notification to launch the application.
To do this, I must specify click_action in the notification. For ios and android that seem like a simple line. For the Internet, this will be a URL.

How can I send a notification that works for a potentially mixed set of devices?

Do I need to separate devices and send them different messages?

+2
source share
2 answers

fcm operates on the basis of an identifier created by a device that differs from device to platform and platform for platform and curling session for different platforms. They are different for android, different for iOS and different for web. If you want to send the entire platform, you must call a 3 different method (ios, android, web) with a different payload or curd session for different platforms. I am posting in two platforms ios and android to make two different functions and call the same time

+3
source

Update . A final feature has been added for FCM, which makes it possible to provide specific parameters for specific platforms, called Platform Overrides .


- .

click_action 3 (Android, iOS, Web):

, , .

:

  • Android

    , , .

  • IOS

    APN.

  • Web

    URL HTTPS.

Web , URL- , URL-, HTTPS ( ).

, . , , .

+3

Source: https://habr.com/ru/post/1681223/


All Articles