我正在向 Expo 应用发送推送通知,我想自定义通知的图标。这该怎么做?
在 Expo
中可以在 app.json
中设置。
"notification"
用于远程(推送)通知的配置。
{
"expo":{
"name":"firstApp",
"description":"firstApp",
"slug":"firstApp",
"privacy":"public",
"sdkVersion":"31.0.0",
"notification":{
"icon":"./assets/images/iconPushNotification.png"
},
"ios":{
"bundleIdentifier":"com.firstApp.firstApp"
},
"android":{
"package":"com.firstApp.firstApp",
"versionCode":1,
"permissions":[
""
]
},
"platforms":[
"ios",
"android"
],
"version":"1.0.0",
"orientation":"portrait",
"icon":"./assets/images/robot-prod.png"
}
}