ios - Firebase 通知未发送 IOS 设备
问题描述
我正在尝试从编写的 API 向多个设备发送 Firebase 通知PHP
。它可以毫无问题地向android 设备发送通知,但ios 设备并非如此。
这是android的有效载荷:
{
"registration_ids": [
"d-Ao4YZ1V_E:APA91bFzT1Es9VhDX4OC_2zOV4RWmDXQ-PP24Za-D-uXAwyWdrd2W3bQkHAc3M1uwYKXTDiWix5teBwfTHbRmHcMbz5q39OCNsGgtgH_n0wxyo0ceL2ZfA8y7o3D0cXDLv2iVMjhmHAA5sVJUOBhfXf-mbzw7E2hog",
"eRetdkDVHvY:APA91bEzUKrnK5cHskxOGTlHZtxYjXsxPyRlj8XRNVOcoX-8aCfY7z0cU0yFVGplBiONqSEV8wtslmW6sDXGodiirS0oKDPUzAaAT91Su5Yrnzs1XHHlfJA6rQurp941rC0hKJ8vd_e9JcfjihlGP36Cu3Tpb3hELw"
],
"data": {
"title": "Producer",
"text": "Setting Check",
"notification": {
"NotificationID": "5864",
"NotificationType": "",
"Title": "Producer",
"Text": "Setting Check"
},
"sound": "true"
},
"content_available": true,
"priority": "high"
}
这是我的 ios 设备有效负载:
{
"registration_ids": [
"dsMZdthHp6E:APA91bH8UcvSiEjlk9b6QRwrWiCWz65k5i-CxKLB3LGqHdz7FG7gPWHRwnNBtsvdWZLg_9Fx8lRFOKyf17XKEm_mdbRAGzni6wbsogDdiG_ARQxCAm8qVD0iaQKvB_tosWcukLLVu3qrbZxc3BjmSvGjeNJaBAcHkQ",
"eXhFfdy9oO4:APA91bGp3bMu-ps6euvBTDW5HshAIgdswFUgZ6p7EIFeW7abHMz2uIwmzzZuqz0bEwEAGi2fGLb0JJ4bhKhoGAs0EH4yqd0WDVkVH9Je6b7q9WFzBDDF__jIGoF1ShdM8qoqnVbeJmOSf3bS7s89xKmUh_m2x0ecQg" ],
"notification": {
"title": "Custom Notification",
"text": "This custom notification is sent through Vendors area. Let's see if it works?",
"sound": "default"
},
"data": {
"notification": {
"Title": "Producer",
"Text": "Setting Check"
},
"title": "Producer",
"text": "Setting Check"
},
"content_available": true,
"priority": "high"
}
问题出在有效载荷上,但我似乎无法找到问题所在。我是火力基地的新手。请帮我整理一下。
解决方案
推荐阅读
- c++ - 为什么initializer_list中的字符串内容为空?
- javascript - 如何将商品从购物车移至订单列表?
- spring-boot - 微服务、模块和错误编译:注入点有如下注解:
- wordpress - 感谢页面上的 woocommerce 挂钩不起作用
- python-3.x - 如何在我的循环中使用除了数字
- c# - DryIoc ScopedTo 现在包括父范围?
- javascript - tinymce 角度图像选择器语法
- android - 改造android - 使用多部分上传文档抛出响应代码422
- python - 从 c# mvc Web 应用程序调用调用时,flask 会话不会持续存在
- r - 如何确定时间是否在R中的其他两个时间之间?