React native 更改expo推送通知图标

React native 更改expo推送通知图标,react-native,push-notification,expo,React Native,Push Notification,Expo,根据文件,我需要一个96x96灰色透明png。我已经创建了这个,并将以下内容放在app.json文件中,但我仍然看到了expo图标。我有什么遗漏吗 "notification": { "icon": "http://example.com/pushIcon.png" } 发送推送通知的代码 try { fetch("https://exp.host/--/api/v2/push/send", {

根据文件,我需要一个96x96灰色透明png。我已经创建了这个,并将以下内容放在app.json文件中,但我仍然看到了expo图标。我有什么遗漏吗

"notification": {
  "icon": "http://example.com/pushIcon.png"
}
发送推送通知的代码

try {
    fetch("https://exp.host/--/api/v2/push/send", {
        method: "POST",
        headers: {
            Accept: "application/json",
            "Accept-Encoding": "gzip, deflate",
            "Content-Type": "application/json",
        },
        body: JSON.stringify({
            to: messages.map((value, index) => value.pushToken),
            sound: "default",
            title: 'Notification title',
            body: "This is the body of the notification",
        }),
    });
} catch (err) {
    alert("Unable to send request, please try again later.");
    console.log(err);
}

下载图标并放置在项目文件夹中,然后像这样链接路径

 "notification": {
      "androidMode" : "default",
      "icon" : "./assets/pushIcon.png"
    }

从该链接下载:

谢谢,我已经尝试过了,但世博会图标仍然保留。你有一个你知道的png的例子吗?是的,我有,你想试试吗?是的,你能把它附加在这里,我可以下载并尝试吗?谢谢。我试过了,但由于某种原因,当我收到推送通知时,世博会图标仍然会出现。我将用我的其他代码更新我的问题。是否有什么地方可能出了问题?重新启动并启动-c