如何在android上实现通知的成本化

如何在android上实现通知的成本化,android,firebase,react-native,push-notification,Android,Firebase,React Native,Push Notification,我正在构建一个React本机应用程序,我可以使用以下命令从firebase或php api发送/接收通知: $msg = array ( 'message' => 'here is a message. message', 'title' => 'This is a title. title', 'subtitle' => 'This is a subtitle. subtitle', 'tickerText' => '

我正在构建一个React本机应用程序,我可以使用以下命令从firebase或php api发送/接收通知:

$msg = array
(
    'message'   => 'here is a message. message',
    'title'     => 'This is a title. title',
    'subtitle'  => 'This is a subtitle. subtitle',
    'tickerText'    => 'Ticker text here...Ticker text here...Ticker text here',
    'vibrate'   => 1,
    'sound'     => 1,
    'largeIcon' => 'large_icon',
    'smallIcon' => 'small_icon'
);
我如何将此通知按如下方式进行压缩或显示:


这是从服务器发送的简单图像吗?

您可以通过从服务器发送图像以及图标、标题和消息(小而长)来实现类似的功能,因此整个通知只是一个图像而已?您可以通过从服务器发送图像以及图标、标题和消息来实现类似的功能(小而长)那么整个通知只是一个图像,对吗?