{"id":15863,"date":"2022-12-22T15:22:36","date_gmt":"2022-12-22T07:22:36","guid":{"rendered":"https:\/\/www.yimenapp.com\/kb-yimen\/?p=15863"},"modified":"2022-12-22T15:22:53","modified_gmt":"2022-12-22T07:22:53","slug":"%e6%9e%81%e5%85%89%e6%b6%88%e6%81%af%e6%8e%a8%e9%80%81%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e5%9b%be%e6%a0%87%e8%ae%be%e7%bd%ae%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenapp.com\/kb-yimen\/15863\/","title":{"rendered":"\u6781\u5149\u6d88\u606f\u63a8\u9001\u5982\u4f55\u5b9e\u73b0\u56fe\u6807\u8bbe\u7f6e\uff1f"},"content":{"rendered":"\n<p><span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e6%9e%81%e5%85%89\/\" title=\"\u6781\u5149\" target=\"_blank\">\u6781\u5149<\/a><\/span>\u6d88\u606f\u63a8\u9001\u5982\u4f55\u5b9e\u73b0\u56fe\u6807\u8bbe\u7f6e\uff1f<\/p>\n\n\n\n<p>\u672c\u6587\u65e8\u5728\u6307\u5bfc\u7528\u6237\u5982\u4f55\u8bbe\u7f6e\u901a\u77e5\u680f\u5c0f\u56fe\u6807\u3001\u53f3\u4fa7\u56fe\u6807\u4ee5\u53ca\u5927\u56fe\u7247\u3002<br><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/12\/20221222152236418.jpg\" width=\"50%\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ios\">iOS<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5c0f\u56fe\u6807\">\u5c0f\u56fe\u6807<\/h3>\n\n\n\n<p>\u8fdb\u5165 Images.xcassets-AppIcon\uff0c\u8bbe\u7f6e iPhone Notification \u7684\u56fe\u6807\uff0c\u5927\u5c0f\u5206\u522b\u4e3a 40 x 40px\u300160 x 60px\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>iOS \u4e0d\u652f\u6301\u670d\u52a1\u7aef\u52a8\u6001\u4e0b\u53d1\u6d88\u606f\u8bbe\u7f6e\u5c0f\u56fe\u6807\u3002<\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/12\/20221222152236390.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u53f3\u4fa7\u56fe\u6807--\u5927\u56fe\u7247\">\u53f3\u4fa7\u56fe\u6807 \/ \u5927\u56fe\u7247<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>App \u5728\u524d\u53f0\u65f6\u6536\u5230\u63a8\u9001\u5f39\u7a97\uff0c\u4e0b\u62c9\u6d88\u606f\u53ef\u4ee5\u67e5\u770b\u5927\u56fe\u7247\uff0c\u5176\u4ed6\u60c5\u51b5\u65e0\u5927\u56fe\u7247\u5c55\u793a\u3002<\/p><\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u652f\u6301\u7248\u672c\">\u652f\u6301\u7248\u672c<\/h4>\n\n\n\n<p>\u4ece JPush iOS SDK v2.1.9\uff0ciOS 10 \u5f00\u59cb\u652f\u6301\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u5ba2\u6237\u7aef\u8bbe\u7f6e\">\u5ba2\u6237\u7aef\u8bbe\u7f6e<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>\u521b\u5efa\u4e00\u4e2a Service Extension \u670d\u52a1\uff0c\u8be6\u60c5\u53c2\u8003&nbsp;<a href=\"https:\/\/docs.jiguang.cn\/jpush\/client\/iOS\/ios_new_fetures\/#ios-10-service-extension\">iOS 10 Service Extension<\/a>\u3002<\/li><li>\u5c06 jpush-extension-ios-xxx.a \u548c JPushNotificationExtensionService.h \u4e24\u4e2a\u6587\u4ef6\u5f15\u5165\u5230\u60a8\u7684 Service Extentsion \u5de5\u7a0b\u4e2d\u3002<\/li><li>\u6dfb\u52a0 Framework\uff1alibz.tbd \u548c libresolv.tbd\u3002<\/li><li>\u8c03\u7528 [jpushSetAppkey:] \u65b9\u6cd5\u8bbe\u7f6e\u60a8\u7684 <span class=\"wpcom_keyword_link\"><a href=\"https:\/\/www.yimenapp.com\" target=\"_blank\" title=\"\u5f00\u53d1app\u4ece\u4e00\u95e8\u5f00\u59cb\">app<\/a><\/span>key\uff0c\u8bf7\u6ce8\u610f\u8fd9\u91cc\u7684 appkey \u5e94\u8be5\u548c\u60a8\u6781\u5149\u5e94\u7528\u7684 appkey \u76f8\u540c\u3002<\/li><li>\u5728 [didReceiveNotificationRequest:] \u56de\u8c03\u65b9\u6cd5\u4e2d\u83b7\u53d6\u56fe\u7247\u94fe\u63a5\uff0c\u8be6\u60c5\u53c2\u8003 SDK \u7684 demo \uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">          <code>- (<strong>void<\/strong>)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(<strong>void<\/strong> (^)(UNNotificationContent * _Nonnull))contentHandler {\n  <strong>self<\/strong>.contentHandler = contentHandler;\n  <strong>self<\/strong>.bestAttemptContent = [request.content mutableCopy];\n  <strong>self<\/strong>.bestAttemptContent.title = [NSString stringWithFormat:@\"%@ [NotificationService]\", <strong>self<\/strong>.bestAttemptContent.title];\n  \n  NSString * attachmentPath = <strong>self<\/strong>.bestAttemptContent.userInfo[@\"my-attachment\"];\n  \/\/if exist\n  <strong>if<\/strong> (attachmentPath) {\n    \/\/download\n    NSURL *fileURL = [NSURL URLWithString:attachmentPath];\n    [<strong>self<\/strong> downloadAndSave:fileURL handler:^(NSString *localPath) {<strong>if<\/strong> (localPath) {UNNotificationAttachment * attachment = [UNNotificationAttachment attachmentWithIdentifier:@\"myAttachment\" URL:[NSURL fileURLWithPath:localPath] options:nil error:nil];\n        <strong>self<\/strong>.bestAttemptContent.attachments = @[attachment];\n      }\n      [<strong>self<\/strong> apnsDeliverWith:request];\n    }];\n  }<strong>else<\/strong>{[<strong>self<\/strong> apnsDeliverWith:request];\n  }\n}\n\n- (<strong>void<\/strong>)downloadAndSave:(NSURL *)fileURL handler:(<strong>void<\/strong> (^)(NSString *))handler {NSURLSession * session = [NSURLSession sharedSession];\n  NSURLSessionDownloadTask *task = [session downloadTaskWithURL:fileURL completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {\n    NSString *localPath = nil;\n    <strong>if<\/strong> (!error) {NSString * localURL = [NSString stringWithFormat:@\"%@\/%@\", NSTemporaryDirectory(),fileURL.lastPathComponent];\n      <strong>if<\/strong> ([[NSFileManager defaultManager] moveItemAtPath:location.path toPath:localURL error:nil]) {localPath = localURL;}\n    }\n    handler(localPath);\n  }];\n  [task resume];\n  \n}\n<\/code>\n        <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u670d\u52a1\u7aef\u8bbe\u7f6e\">\u670d\u52a1\u7aef\u8bbe\u7f6e<\/h4>\n\n\n\n<p>\u56fe\u7247\u5c55\u793a\u9700\u8981\u5728 ios \u4e0b\u914d\u7f6e mutable-content \u548c extras \u5b57\u6bb5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u5173\u952e\u5b57<\/th><th>\u7c7b\u578b<\/th><th>\u9009\u9879<\/th><th>\u7236\u9879\u76ee<\/th><th>\u542b\u4e49<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>mutable-content<\/td><td>boolean<\/td><td>\u53ef\u9009<\/td><td>notification.ios<\/td><td>\u901a\u77e5\u6269\u5c55<\/td><td>\u63a8\u9001\u7684\u65f6\u5019\u643a\u5e26 \u201dmutable-content&#8221;:true \u8bf4\u660e\u662f\u652f\u6301 iOS 10 \u7684 UNNotificationServiceExtension\uff0c\u5982\u679c\u4e0d\u643a\u5e26\u6b64\u5b57\u6bb5\u5219\u662f\u666e\u901a\u7684 Remote Notification\uff0c\u8be6\u60c5\u53c2\u8003\uff1a<a href=\"https:\/\/docs.jiguang.cn\/jpush\/client\/iOS\/ios_new_fetures\/#ios-10-service-extension\">UNNotificationServiceExtension<\/a>\u3002<\/td><\/tr><tr><td>extras<\/td><td>JSON Object<\/td><td>\u53ef\u9009<\/td><td>notification.ios<\/td><td>\u9644\u52a0\u5b57\u6bb5<\/td><td>\u8fd9\u91cc\u81ea\u5b9a\u4e49 key \/ value \u4fe1\u606f\uff0c\u8fd9\u4e2a key\uff08my-attachment\uff09\u503c\uff0c\u9700\u8981\u4e0e\u5ba2\u6237\u7aef\u7684\u503c\u5bf9\u5e94\uff0c\u5ba2\u6237\u7aef\u5de5\u7a0b\u62ff\u5230 key \u503c\u5bf9\u5e94\u7684 url \u56fe\u6807\u52a0\u8f7d\u51fa\u6765\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">          <code>\"notification\": {\n    \"ios\": {\n        \"alert\": {\n            \"title\": \"title\",\n            \"subtitle\": \"subtitle\"\n        },\n        \"mutable-content\": <strong>true<\/strong>,\n        \"extras\": {\n            \/\/ \u8fd9\u4e2a key\uff08my-attachment\uff09\u503c\uff0c\u9700\u8981\u4e0e\u5ba2\u6237\u7aef\u7684\u503c\u5bf9\u5e94\uff0c\u5ba2\u6237\u7aef\u5de5\u7a0b\u62ff\u5230 key \u503c\u5bf9\u5e94\u7684 url \u56fe\u6807\u52a0\u8f7d\u51fa\u6765\u3002\n            \"my-attachment\": \"https:\/\/raw.githubusercontent.com\/Tikon\/imgRepo\/master\/ic_launcher.png\"\n        }\n    }\n}  \n<\/code>\n        <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u63a7\u5236\u53f0\u4e0b\u53d1\">\u63a7\u5236\u53f0\u4e0b\u53d1<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/12\/20221222152238445.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"android\">Android<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u652f\u6301\u7248\u672c-1\">\u652f\u6301\u7248\u672c<\/h3>\n\n\n\n<p>\u6781\u5149\u901a\u9053\u4ece JPush Android SDK v3.1.7 \u5f00\u59cb\u652f\u6301\uff0c\u5382\u5546\u901a\u9053\u56fe\u6807\u4ece JPush SDK 3.9.0 \u5f00\u59cb\u652f\u6301\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u901a\u9053\u652f\u6301\u60c5\u51b5\">\u901a\u9053\u652f\u6301\u60c5\u51b5<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u901a\u9053<\/th><th>\u52a8\u6001\u8bbe\u7f6e\u5c0f\u56fe\u6807<\/th><th>\u53f3\u4fa7\u56fe\u6807<\/th><th>\u5927\u56fe\u7247<\/th><\/tr><\/thead><tbody><tr><td>\u6781\u5149<\/td><td>\u652f\u6301<\/td><td>\u652f\u6301\uff08\u9b45\u65cf\u624b\u673a\u672c\u8eab\u4e0d\u652f\u6301\uff09<\/td><td>\u652f\u6301<\/td><\/tr><tr><td>\u5c0f\u7c73<\/td><td>\u652f\u6301<\/td><td>\u652f\u6301<\/td><td>\u652f\u6301<\/td><\/tr><tr><td>\u534e\u4e3a<\/td><td>\u652f\u6301<\/td><td>\u652f\u6301\uff08\u4ec5\u670d\u52a1\u4e0e\u8d44\u8baf\u6d88\u606f\u652f\u6301\uff09<\/td><td>\u4e0d\u652f\u6301<\/td><\/tr><tr><td>oppo<\/td><td>\u4e0d\u652f\u6301<\/td><td>\u652f\u6301<\/td><td>\u652f\u6301<\/td><\/tr><tr><td>FCM<\/td><td>\u4e0d\u652f\u6301<\/td><td>\u652f\u6301<\/td><td>\u652f\u6301<\/td><\/tr><tr><td>\u9b45\u65cf<\/td><td>\u4e0d\u652f\u6301<\/td><td>\u4e0d\u652f\u6301<\/td><td>\u4e0d\u652f\u6301<\/td><\/tr><tr><td>vivo<\/td><td>\u4e0d\u652f\u6301<\/td><td>\u4e0d\u652f\u6301<\/td><td>\u4e0d\u652f\u6301<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u8bf4\u660e\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u534e\u4e3a\u670d\u52a1\u4e0e\u8d44\u8baf\u6d88\u606f\u7c7b\u7533\u8bf7\u53c2\u8003&nbsp;<a href=\"https:\/\/docs.jiguang.cn\/jpush\/client\/Android\/android_channel_id#%E5%8D%8E%E4%B8%BA%E6%B6%88%E6%81%AF%E5%88%86%E7%B1%BB%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97\">\u6d88\u606f\u5206\u7c7b\uff08Channel ID\uff09<\/a>\u3002<\/li><li>OPPO \u5355\u70b9\u63a8\u9001\u4e0d\u652f\u6301\u53f3\u4fa7\u56fe\u6807\u548c\u5927\u56fe\u7247\uff0c\u82e5 OPPO \u63a8\u9001\u76ee\u6807\u5c0f\u4e8e 20 \u4e2a\uff0c\u6781\u5149\u540e\u53f0\u8c03\u7528 OPPO \u7684\u5355\u70b9\u63a8\u9001\u63a5\u53e3\u4e0b\u53d1\u6d88\u606f\uff0c\u8be6\u60c5\u53c2\u8003&nbsp;<a href=\"https:\/\/open.oppomobile.com\/new\/developmentDoc\/info?id=11257\">OPPO \u8bf4\u660e\u6587\u6863<\/a>\u3002<\/li><li>OPPO \u63a8\u9001\u76ee\u6807\u5927\u4e8e 20 \u4e2a\u4e14 ColorOS \u7248\u672c &gt;5.0 \uff0c\u5728\u8fde\u63a5 wifi \u7684\u72b6\u6001\u4e0b\u901a\u77e5\u680f\u7b2c\u4e00\u6761\u6d88\u606f\u5c55\u793a\u5927\u56fe\uff0c\u975e\u7b2c\u4e00\u6761\u6d88\u606f\u4e0d\u663e\u793a\u5927\u56fe\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5c0f\u56fe\u6807-1\">\u5c0f\u56fe\u6807<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u5ba2\u6237\u7aef\u8bbe\u7f6e-1\">\u5ba2\u6237\u7aef\u8bbe\u7f6e<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5982\u679c\u9879\u76ee\u4e2d\u6709&nbsp;<code>res\/drawable-xxxx\/jpush_notification_icon<\/code>&nbsp;\u8d44\u6e90\uff0c\u5219\u9ed8\u8ba4\u4f7f\u7528 jpush_notification_icon \u4f5c\u4e3a\u901a\u77e5\u5c0f\u56fe\u6807\u3002<\/li><li>\u5982\u65e0 jpush_notification_icon \u8d44\u6e90\uff0c\u5219\u9ed8\u8ba4\u4f7f\u7528\u5e94\u7528\u56fe\u6807\u3002<\/li><li>FCM \u901a\u9053\u8bbe\u7f6e\u9ed8\u8ba4\u5c0f\u56fe\u6807\uff1a<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">          <code>&lt;!-- Set custom default icon. This is used when no icon is set for incoming notification messages.\n     See README(https:\/\/goo.gl\/l4GJaQ) for more. --&gt;\n&lt;meta-data\n    android:name=\"com.google.firebase.messaging.default_notification_icon\"\n    android:resource=\"@drawable\/jpush_notification_icon\" \/&gt;\n&lt;!-- Set color used with incoming notification messages. This is used when no color is set for the incoming\n     notification message. See README(https:\/\/goo.gl\/6BKBk7) for more. --&gt;\n&lt;meta-data\n    android:name=\"com.google.firebase.messaging.default_notification_color\"\n    android:resource=\"@color\/colorAccent\" \/&gt;\n<\/code>\n        <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u670d\u52a1\u7aef\u8bbe\u7f6e-1\">\u670d\u52a1\u7aef\u8bbe\u7f6e<\/h4>\n\n\n\n<p>\u82e5\u9700\u8981\u52a8\u6001\u8bbe\u7f6e\u901a\u77e5\u680f\u5c0f\u56fe\u6807\uff0c\u53ef\u5728 android \u4e0b\u914d\u7f6e small_icon_uri \u5b57\u6bb5\uff0c\u5382\u5546\u901a\u9053\u53ef\u5728 options.third_party_channel \u4e0b\u914d\u7f6e\u5bf9\u5e94\u5382\u5546\u7684 small_icon_uri \u5b57\u6bb5\uff0c\u4f18\u5148\u4f7f\u7528\u5382\u5546\u5b57\u6bb5\uff0c \u5382\u5546\u5b57\u6bb5\u6ca1\u6709\u586b\u5145\uff0c\u5219\u4f7f\u7528 android \u4e0b\u7684 small_icon_uri \u5b57\u6bb5\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>\u6ce8\u610f\uff1a<\/strong>\u82e5\u4f7f\u7528\u5c0f\u7c73\u901a\u9053\uff0csmall_icon_uri \u5fc5\u987b\u4f7f\u7528\u6781\u5149\u56fe\u7247\u4e0a\u4f20\u63a5\u53e3\u5f97\u5230\u7684\u56fe\u7247\u8def\u5f84\uff08\u5efa\u8bae\u4f7f\u7528 media_id \u503c\uff09\uff0c\u8be6\u60c5\u53c2\u8003&nbsp;<a href=\"https:\/\/docs.jiguang.cn\/jpush\/server\/push\/rest_api_v3_image\">\u56fe\u7247 API<\/a>\u3002<\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u5173\u952e\u5b57<\/th><th>\u7c7b\u578b<\/th><th>\u9009\u9879<\/th><th>\u7236\u9879\u76ee<\/th><th>\u542b\u4e49<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>small_icon_uri<\/td><td>string<\/td><td>\u53ef\u9009<\/td><td>notification.<br>android<\/td><td>\u901a\u77e5\u680f\u5c0f\u56fe\u6807<\/td><td>\u56fe\u6807\u5927\u5c0f\u4e0d\u8d85\u8fc7 30 k \uff08\u6ce8\uff1a\u4ece JPush Android SDK v4.0.0 \u7248\u672c\u5f00\u59cb\uff0c\u56fe\u7247\u5927\u5c0f\u9650\u5236\u63d0\u5347\u81f3 300 k\uff09\u3002\u53ef\u4ee5\u662f\u4ee5 http \u6216 https \u5f00\u5934\u7684\u7f51\u7edc\u56fe\u7247\u3002\u53ef\u4ee5\u662f\u901a\u8fc7\u6781\u5149\u56fe\u7247\u4e0a\u4f20\u63a5\u53e3\u5f97\u5230\u7684 media_id \u503c\uff0c\u8be6\u60c5\u53c2\u8003&nbsp;<a href=\"https:\/\/docs.jiguang.cn\/jpush\/server\/push\/rest_api_v3_image\">\u56fe\u7247 API<\/a>\uff08\u63a8\u8350\u4f7f\u7528\uff09\u3002\u6b64\u5b57\u6bb5\u503c\uff0c\u82e5\u662f media_id, \u5219\u5bf9\u5176\u5b83\u5382\u5546\u901a\u9053\u751f\u6548\uff0c\u82e5\u975e media_id\uff0c\u5219\u5bf9\u8d70\u534e\u7855\u901a\u9053\u548c\u6781\u5149\u901a\u9053\u4e0b\u53d1\u7684\u6d88\u606f\u751f\u6548\uff0c\u4e0d\u5f71\u54cd\u8bf7\u6c42\u8d70\u5176\u5b83\u5382\u5546\u901a\u9053\u3002<\/td><\/tr><tr><td>small_icon_uri<\/td><td>string<\/td><td>\u53ef\u9009<\/td><td>options.<br>third_party_channel. \u5382\u5546<\/td><td>\u5382\u5546\u6d88\u606f\u5c0f\u56fe\u6807\u6837\u5f0f<\/td><td>\u76ee\u524d\u652f\u6301\u5c0f\u7c73 \/ \u534e\u4e3a\u4e24\u4e2a\u5382\u5546\u3002\u4f18\u5148\u4f7f\u7528\u5382\u5546\u5b57\u6bb5\uff0c \u5382\u5546\u5b57\u6bb5\u6ca1\u6709\u586b\u5145\uff0c\u5219\u4f7f\u7528 android \u91cc\u9762\u5b9a\u4e49 small_icon_uri \u5b57\u6bb5\u3002\u5c0f\u7c73\u652f\u6301\u6781\u5149\u7684 media_id \u53ca\u5c0f\u7c73\u5382\u5546\u7684\u5c0f\u56fe\u6807 id\uff0c\u534e\u4e3a\u652f\u6301\u6781\u5149\u7684 media_id \u53ca\u534e\u4e3a\u5382\u5546\u672c\u5730\u8def\u5f84\u3002(\u5c0f\u7c73\u5b98\u65b9\u540e\u7eed\u4e0d\u518d\u652f\u6301\u81ea\u5b9a\u4e49\u5c0f\u56fe\u6807\uff0c\u5efa\u8bae\u5f00\u53d1\u8005\u4e0d\u8981\u7ee7\u7eed\u4f7f\u7528\u5c0f\u7c73 small Icon \u76f8\u5173\u7279\u6027\u529f\u80fd)\u3002<\/td><\/tr><tr><td>small_icon_color<\/td><td>string<\/td><td>\u53ef\u9009<\/td><td>options.<br>third_party_channel.<br>xiaomi<\/td><td>\u5c0f\u7c73\u5382\u5546\u5c0f\u56fe\u6807\u6837\u5f0f\u989c\u8272<\/td><td>\u4e3a\u4e86\u9002\u914d\u5c0f\u7c73\u5382\u5546\u7684\u6d88\u606f\u5c0f\u56fe\u6807\u6837\u5f0f\u989c\u8272\uff0c\u4e0d\u586b\u5145\u9ed8\u8ba4\u662f\u7070\u8272\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">          <code>\"notification\": {\n    \"android\": {\n        \"alert\": \"Hi, JPush!\",\n        \"title\": \"Send to Android\",\n        \/\/ \u6b64\u5b57\u6bb5\u503c\uff0c\u82e5\u662f\u6781\u5149 media_id, \u5219\u5bf9\u5176\u5b83\u5382\u5546\u901a\u9053\u4e5f\u4f1a\u4f7f\u7528\u8fd9\u4e2a media_id \u4e0b\u53d1\uff0c\u82e5\u975e media_id\uff0c\u5219\u5bf9\u8d70\u534e\u7855\u901a\u9053\u4e0b\u53d1\u548c\u6781\u5149\u81ea\u6709\u901a\u9053\u4e0b\u53d1\u751f\u6548\uff0c\u4e0d\u5f71\u54cd\u8bf7\u6c42\u8d70\u5176\u5b83\u5382\u5546\u901a\u9053\u3002\n        \"small_icon_uri\": \"jgmedia-2-98dc326f-f2f4-48ab-bb6b-1b87a803d699\"\n    }\n},\n\"options\": {\n    \"time_to_live\": 60,\n    \"third_party_channel\": {\n        \"xiaomi\": {\n            \"distribution\": \"ospush\",\n            \/\/ \u901a\u77e5\u6837\u5f0f\u9700\u5207\u6362\u5230\u539f\u751f\u6837\u5f0f\u4f20\u503c\u624d\u751f\u6548\uff0c\u4f46\u662f\u539f\u751f\u6837\u5f0f\u9ed8\u8ba4\u662f\u7070\u767d\uff0c\u9700\u8981\u4f20\u503c small_icon_color \u67d3\u8272\n            \"small_icon_uri\": \"jgmedia-2-98dc326f-f2f4-48ab-bb6b-1b87a803d699\",\n            \"small_icon_color\": \"#00FF00\" \/\/ \u67d3\u7eff\u8272\n        },\n        \"huawei\": {\n            \"distribution\": \"ospush\",\n            \"small_icon_uri\": \"\/raw\/icon_hw\" \/\/ \u540e\u53f0\u6307\u5b9a\u7684\u8def\u5f84\uff0c\u5728\u5ba2\u6237\u7aef\u5de5\u7a0b\u9700\u8981\u6709\u8fd9\u4e2a\u56fe\u7247, \u653e\u7f6e\u76ee\u5f55\u4e3a res\/raw\/xxx.png               \n        }\n    }\n}\n<\/code>\n        <\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u53f3\u4fa7\u56fe\u6807--\u5927\u56fe\u7247-1\">\u53f3\u4fa7\u56fe\u6807 \/ \u5927\u56fe\u7247<\/h3>\n\n\n\n<p>\u901a\u8fc7\u670d\u52a1\u7aef\u4e0b\u53d1\u6307\u5b9a\u53c2\u6570\u5373\u53ef\u5b9e\u73b0\u53f3\u4fa7\u56fe\u6807\u548c\u5927\u56fe\u7247\u5c55\u793a\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>\u6ce8\u610f\uff1a<\/strong>\u82e5\u4f7f\u7528\u5c0f\u7c73\u901a\u9053\uff0c large_icon\/big_pic_path \u5fc5\u987b\u4f7f\u7528\u6781\u5149\u56fe\u7247\u4e0a\u4f20\u63a5\u53e3\u5f97\u5230\u7684\u56fe\u7247\u8def\u5f84\uff08\u5efa\u8bae\u4f7f\u7528 media_id \u503c\uff09\uff0c\u8be6\u60c5\u53c2\u8003&nbsp;<a href=\"https:\/\/docs.jiguang.cn\/jpush\/server\/push\/rest_api_v3_image\">\u56fe\u7247 API<\/a>\u3002<\/p><\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u670d\u52a1\u7aef\u8bbe\u7f6e-2\">\u670d\u52a1\u7aef\u8bbe\u7f6e<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u5173\u952e\u5b57<\/th><th>\u7c7b\u578b<\/th><th>\u9009\u9879<\/th><th>\u7236\u9879\u76ee<\/th><th>\u542b\u4e49<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>style<\/td><td>int<\/td><td>\u53ef\u9009<\/td><td>notification.<br>android<\/td><td>\u901a\u77e5\u680f\u6837\u5f0f\u7c7b\u578b<\/td><td>\u9ed8\u8ba4\u4e3a 0\uff0c\u8fd8\u6709 1\uff0c2\uff0c3 \u53ef\u9009\uff0c\u7528\u6765\u6307\u5b9a\u9009\u62e9\u54ea\u79cd\u901a\u77e5\u680f\u6837\u5f0f\uff0c\u5176\u4ed6\u503c\u65e0\u6548\u3002\u6709\u4e09\u79cd\u53ef\u9009\u5206\u522b\u4e3a bigText=1\uff0cInbox=2\uff0cbigPicture=3\u3002<\/td><\/tr><tr><td>big_pic_path<\/td><td>string<\/td><td>\u53ef\u9009<\/td><td>notification.<br>android<\/td><td>\u5927\u56fe\u7247\u901a\u77e5\u680f\u6837\u5f0f<\/td><td>\u5f53 style = 3 \u65f6\u53ef\u7528\uff0c\u76ee\u524d\u652f\u6301 .jpg \u548c .png \u683c\u5f0f\u7684\u56fe\u7247\u3002\u652f\u6301\u7f51\u7edc\u56fe\u7247 url\u3001\u672c\u5730\u56fe\u7247\u7684 path\u3001<a href=\"https:\/\/docs.jiguang.cn\/jpush\/server\/push\/rest_api_v3_image\">\u6781\u5149 media_id<\/a>\u3002\u5982\u679c\u662f http\uff0fhttps \u7684 url\uff0c\u4f1a\u81ea\u52a8\u4e0b\u8f7d\uff1b\u5982\u679c\u8981\u6307\u5b9a\u5f00\u53d1\u8005\u51c6\u5907\u7684\u672c\u5730\u56fe\u7247\u5c31\u586b sdcard \u7684\u76f8\u5bf9\u8def\u5f84\u3002<\/td><\/tr><tr><td>large_icon<\/td><td>string<\/td><td>\u53ef\u9009<\/td><td>notification.<br>android<\/td><td>\u901a\u77e5\u680f\u5927\u56fe\u6807<\/td><td>\u56fe\u6807\u5927\u5c0f\u4e0d\u8d85\u8fc7 30 k\uff08\u6ce8\uff1a\u4ece JPush Android SDK v4.0.0 \u7248\u672c\u5f00\u59cb\uff0c\u56fe\u7247\u5927\u5c0f\u9650\u5236\u63d0\u5347\u81f3 300 k\uff09\u3002\u53ef\u4ee5\u662f\u4ee5 http \u6216 https \u5f00\u5934\u7684\u7f51\u7edc\u56fe\u7247\u3002\u53ef\u4ee5\u662f\u4f4d\u4e8e drawable \u8d44\u6e90\u6587\u4ef6\u5939\u7684\u56fe\u6807\u8def\u5f84\u3002\u53ef\u4ee5\u662f\u901a\u8fc7\u6781\u5149\u56fe\u7247\u4e0a\u4f20\u63a5\u53e3\u5f97\u5230\u7684&nbsp;<a href=\"https:\/\/docs.jiguang.cn\/jpush\/server\/push\/rest_api_v3_image\">media_id \u503c<\/a>\u3002\u6b64\u5b57\u6bb5\u503c\uff0c\u82e5\u662f media_id, \u5219\u5bf9\u5176\u5b83\u5382\u5546\u901a\u9053\u751f\u6548\uff0c\u82e5\u975e media_id\uff0c\u5219\u5bf9\u8d70\u534e\u7855\u901a\u9053\u548c\u6781\u5149\u901a\u9053\u4e0b\u53d1\u7684\u6d88\u606f\u751f\u6548\uff0c\u4e0d\u5f71\u54cd\u8bf7\u6c42\u8d70\u5176\u5b83\u5382\u5546\u901a\u9053\u3002<\/td><\/tr><tr><td>style<\/td><td>int<\/td><td>\u53ef\u9009<\/td><td>options.<br>third_party_channel.<br>\u5382\u5546<\/td><td>\u5382\u5546\u6d88\u606f\u5927\u6587\u672c \/inbox\/ \u5927\u56fe\u7247\u6837\u5f0f<\/td><td>\u4e3a\u4e86\u9002\u914d\u5382\u5546\u7684\u6d88\u606f\u5927\u6587\u672c \/inbox\/ \u5927\u56fe\u7247\u6837\u5f0f\uff0c\u4e0d\u586b\u5145\u9ed8\u8ba4\u662f 0\u3002\u5bf9\u5e94\u5173\u7cfb bigText=1\uff0cInbox=2\uff0cbigPicture=3\u3002<\/td><\/tr><tr><td>big_pic_path<\/td><td>string<\/td><td>\u53ef\u9009<\/td><td>options.<br>third_party_channel.<br>\u5382\u5546<\/td><td>\u5382\u5546\u5927\u56fe\u7247\u901a\u77e5\u680f\u6837\u5f0f<\/td><td>\u652f\u6301\u5c0f\u7c73 \/oppo \u4e24\u4e2a\u5382\u5546\u3002\u4f18\u5148\u4f7f\u7528\u5382\u5546\u5b57\u6bb5\uff0c \u5382\u5546\u5b57\u6bb5\u6ca1\u6709\u586b\u5145\uff0c\u5219\u4f7f\u7528 android \u91cc\u9762\u5b9a\u4e49 big_pic_path \u5b57\u6bb5\u3002\u5efa\u8bae\u4f7f\u7528&nbsp;<a href=\"https:\/\/docs.jiguang.cn\/jpush\/server\/push\/rest_api_v3_image\">\u6781\u5149 media_id<\/a>\uff0c\u9700\u914d\u5408\u5404\u81ea\u5382\u5546\u7684 style \u4f7f\u7528\u3002<\/td><\/tr><tr><td>large_icon<\/td><td>string<\/td><td>\u53ef\u9009<\/td><td>options.<br>third_party_channel.<br>\u5382\u5546<\/td><td>\u5382\u5546\u6d88\u606f\u5927\u56fe\u6807\u6837\u5f0f<\/td><td>\u652f\u6301\u5c0f\u7c73 \/ \u534e\u4e3a \/oppo \u4e09\u4e2a\u5382\u5546\u3002\u4f18\u5148\u4f7f\u7528\u5382\u5546\u5b57\u6bb5\uff0c \u5382\u5546\u5b57\u6bb5\u6ca1\u6709\u586b\u5145\uff0c\u5219\u4f7f\u7528 android \u91cc\u9762\u5b9a\u4e49 large_icon \u5b57\u6bb5 android \u5185\u7684 large_icon\u3002\u5176\u4e2d\u5c0f\u7c73\u652f\u6301\u6781\u5149\u7684 media_id(\u8be6\u89c1\uff1a<a href=\"https:\/\/docs.jiguang.cn\/jpush\/server\/push\/rest_api_v3_image\">&nbsp;\u56fe\u7247 API<\/a>) \u53ca\u5c0f\u7c73\u5382\u5546\u7684\u5927\u56fe\u6807 id, \u4f46\u5fc5\u987b\u914d\u5408\u5c0f\u7c73 big_text \u6216\u8005\u662f big_pic_path \u4f7f\u7528\uff0c\u5426\u5219\u65e0\u6548\u3002\u534e\u4e3a\u652f\u6301\u6781\u5149\u7684 media_id \u53ca\u7f51\u7edc https \u8def\u5f84\u3002oppo \u652f\u6301\u6781\u5149\u7684 media_id \u53ca oppo \u5382\u5546\u7684\u5927\u56fe\u6807 id\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">          <code>{\n    \"notification\": {\n        \"android\": {\n            \"alert\": \"Hi, JPush!\",\n            \"title\": \"Send to Android\",\n            \"large_icon\": \"jgmedia-2-98dc326f-f2f4-48ab-bb6b-1b87a803d699\",\n            \"big_pic_path\": \"jgmedia-2-98dc326f-f2f4-48ab-bb6b-1b87a803d699\",\n            \"style\": 3\n        }\n    },\n    \"options\": {\n        \"third_party_channel\": {\n            \/\/ \u6b64\u5904\u6240\u4f20\u7684 large_icon \u548c big_pic_path\uff0c\u5fc5\u987b\u662f\u8c03\u7528\u6781\u5149\u56fe\u7247 API \u8fd4\u56de\u7684\u8def\u5f84,\u5426\u5219\u63a8\u9001\u5230\u5382\u5546\u5c06\u4f1a\u62a5\u9519\u3002\n             \"xiaomi\": {\n                \"distribution\": \"ospush\",\n                \"big_text\": \"testbigtext\",\n                \/\/ \u5fc5\u987b\u914d\u5408\u5c0f\u7c73 big_text \u6216\u8005\u662f big_pic_path \u4f7f\u7528\n                \"large_icon\": \"jgmedia-2-98dc326f-f2f4-48ab-bb6b-1b87a803d699\",\n                \"big_pic_path\": \"jgmedia-2-98dc326f-f2f4-48ab-bb6b-1b87a803d699\",\n                \"style\": 3\n            },\n            \/\/ \u534e\u4e3a\u53ea\u652f\u6301\u53f3\u4fa7\u56fe\u6807\uff0c\u4e0d\u652f\u6301\u5927\u56fe\u7247\n            \"huawei\": {\n                \"distribution\": \"ospush\",\n                \"large_icon\": \"jgmedia-2-98dc326f-f2f4-48ab-bb6b-1b87a803d699\",\n                \"style\": 1\n            },\n            \/\/oppo \u5355\u63a8\u4e0d\u652f\u6301\u5927\u56fe\u7247\u548c\u53f3\u4fa7\u56fe\u6807\uff0c\u6781\u5149\u5185\u90e8\u76ee\u524d\u5982\u679c\u63a8\u9001\u7684 OPPO \u76ee\u6807\u5c0f\u4e8e 20 \u90fd\u4f1a\u7528 oppo \u7684\u5355\u63a8\u63a5\u53e3\u4e0b\u53d1\u63a8\u9001\uff0c\u56e0\u6b64\u63a8\u9001\u76ee\u6807\u5c0f\u4e8e 20 \u4e2a\u5927\u56fe\u7247\u548c\u53f3\u4fa7\u56fe\u6807\u662f\u4e0d\u751f\u6548\u7684\n            \"oppo\": {\n                \"distribution\": \"ospush\",\n                \"large_icon\": \"jgmedia-2-98dc326f-f2f4-48ab-bb6b-1b87a803d699\",\n                \"big_pic_path\": \"jgmedia-2-98dc326f-f2f4-48ab-bb6b-1b87a803d699\",\n                \"style\": 3\n            }\n        }\n    }\n}\n<\/code>\n        <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5c0f\u56fe\u6807-2\">\u5c0f\u56fe\u6807<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"1-\u5c0f\u56fe\u6807\u663e\u793a\u4e3a\u7070\u8272\">1. \u5c0f\u56fe\u6807\u663e\u793a\u4e3a\u7070\u8272<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8c37\u6b4c\u539f\u751f Android 5.0 \u4ee5\u4e0a\u7684 ROM \u90fd\u4f1a\u5bf9 target sdk \u5927\u4e8e\u7b49\u4e8e 21 \u7684 App \u7684\u5c0f\u56fe\u6807\u8fdb\u884c\u5904\u7406\uff0c\u589e\u52a0\u4e00\u5c42\u989c\u8272\uff0c\u5bfc\u81f4\u56fe\u6807\u53d8\u7070\u3002\u6211\u4eec\u53ef\u4ee5\u5b9a\u4e49&nbsp;<strong>\u6ca1\u6709\u9634\u5f71\u548c\u6e10\u53d8\u8272\u3001\u9542\u7a7a\u80cc\u666f<\/strong>&nbsp;\u7684 icon&nbsp;<strong>\u540c\u540d\u66ff\u6362\u9879\u76ee\u4e2d<\/strong>&nbsp;<code>res\/drawable-xxxx\/jpush_notification_icon<\/code>&nbsp;\u8fd9\u4e2a\u6587\u4ef6\uff0c\u8be5\u65b9\u5f0f\u663e\u793a\u7684\u5c0f\u56fe\u6807\u5373\u53ef\u4e3a\u7070\u8272\uff08\u4f46\u662f\u56fe\u6807\u6709\u5f62\u72b6\uff09\u3002\u8bf7\u4e25\u683c\u6309\u7167\u8981\u6c42\u5236\u4f5c\u56fe\u7247\uff0c\u5e76\u5c06 res \u6587\u4ef6\u5939\u4e0b\u7684&nbsp;<strong>\u6240\u6709 icon \u6587\u4ef6<\/strong>&nbsp;\u90fd\u66ff\u6362\u6210\u81ea\u5df1\u7684\u56fe\u6807\u6587\u4ef6\u3002<\/li><li>\u7531\u4e8e\u90e8\u5206\u7cfb\u7edf\uff08\u4e00\u52a0\u624b\u673a\u3001google \u624b\u673a android10 \u7cfb\u7edf\u7b49\uff09\u5bf9\u56fe\u6807\u6709\u9650\u5236\uff0c\u76ee\u524d\u65e0\u6cd5\u5904\u7406\u3002<\/li><li>\u5c0f\u7c73\u624b\u673a\u7684 launcher \u53ef\u80fd\u6709\u7f13\u5b58\uff0c\u6309\u7167\u4e0a\u8ff0\u8981\u6c42\u914d\u7f6e\u597d\u540e\uff0c \u9700&nbsp;<strong>\u91cd\u542f\u624b\u673a<\/strong>&nbsp;\u540e\u518d\u6d4b\u8bd5\u3002<\/li><li>\u5c0f\u7c73\u624b\u673a\u65e0\u8bba\u8d70\u6781\u5149\u901a\u9053\u8fd8\u662f\u5c0f\u7c73\u901a\u9053\uff0c\u90fd\u9700\u8981\u5207\u6362\u5230\u539f\u751f\u6837\u5f0f\u624d\u53ef\u4ee5\u751f\u6548\u3002<img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/12\/20221222152240885.jpg\" width=\"30%\"><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"2-\u5ba2\u6237\u7aef\u66f4\u6362-icon-\u56fe\u6807\u4e0d\u751f\u6548\">2. \u5ba2\u6237\u7aef\u66f4\u6362 icon \u56fe\u6807\u4e0d\u751f\u6548<\/h4>\n\n\n\n<p>\u7531\u4e8e\u7cfb\u7edf\u3001\u5382\u5546\u670d\u52a1\u5668\u4f1a\u7f13\u5b58\u56fe\u6807\uff0c\u5c0f\u7c73\u548c\u9b45\u65cf\u624b\u673a\u53ef\u80fd\u4f1a\u51fa\u73b0\u6b64\u73b0\u8c61\uff0c\u5efa\u8bae\u5378\u8f7d\u5e94\u7528\uff0c\u91cd\u542f\u624b\u673a\u540e\u91cd\u65b0\u5b89\u88c5\u65b0\u5305\u540e\u6d4b\u8bd5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u53f3\u4fa7\u56fe\u6807--\u5927\u56fe\u7247-2\">\u53f3\u4fa7\u56fe\u6807 \/ \u5927\u56fe\u7247<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u63a8\u9001\u7684\u65f6\u5019\u505a\u4e86\u4ee5\u4e0a\u5904\u7406\uff0c\u53f3\u4fa7\u56fe\u6807--\u5927\u56fe\u7247\u8fd8\u662f\u65e0\u6cd5\u5c55\u793a\uff1f\">\u63a8\u9001\u7684\u65f6\u5019\u505a\u4e86\u4ee5\u4e0a\u5904\u7406\uff0c\u53f3\u4fa7\u56fe\u6807 \/ \u5927\u56fe\u7247\u8fd8\u662f\u65e0\u6cd5\u5c55\u793a\uff1f<\/h4>\n\n\n\n<p>1.\u6781\u5149\u901a\u9053<br>\u5982\u679c\u8d70\u6781\u5149\u901a\u9053\u4e5f\u4e0d\u751f\u6548\uff0c\u8bf7\u786e\u8ba4\u7528\u6237\u662f\u5426\u8c03\u7528\u8fc7&nbsp;<a href=\"https:\/\/docs.jiguang.cn\/jpush\/client\/Android\/android_api#%E8%AE%BE%E7%BD%AE%E9%BB%98%E8%AE%A4%E9%80%9A%E7%9F%A5%E6%A0%8F%E6%A0%B7%E5%BC%8F%E6%9E%84%E5%BB%BA%E7%B1%BB\">\u8bbe\u7f6e\u9ed8\u8ba4\u901a\u77e5\u680f\u6837\u5f0f\u6784\u5efa\u7c7b<\/a>&nbsp;\u63a5\u53e3\u66f4\u6539\u8fc7\u6781\u5149\u9ed8\u8ba4\u6837\u5f0f\u3002\u5982\u679c\u6709\u8c03\u7528\uff0c\u8bf7\u5220\u9664\u6b64\u63a5\u53e3\uff0c\u5378\u8f7d\u91cd\u88c5 App \u540e\u91cd\u8bd5\u3002<br><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/12\/20221222152241341.jpg\" alt=\"\"><\/p>\n\n\n\n<p>2.APNs \u901a\u9053<br>iOS \u7684\u53f3\u4fa7\u56fe\u6807\u548c\u5927\u56fe\u7247\u662f\u4e00\u56fe\u4e24\u7528\u7684\u60c5\u51b5\uff0cApp \u5728\u524d\u53f0\u65f6\u6536\u5230\u63a8\u9001\u5f39\u7a97\uff0c\u4e0b\u62c9\u6d88\u606f\u53ef\u4ee5\u67e5\u770b\u5927\u56fe\u7247\uff0c\u5176\u4ed6\u60c5\u51b5\u4ec5\u5c55\u793a\u4e3a\u53f3\u4fa7\u56fe\u6807\u3002<br><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/12\/20221222152244811.jpg\" width=\"40%\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/12\/20221222152246857.jpg\" width=\"40%\"><\/p>\n\n\n\n<p>3.FCM \u901a\u9053<br>Firebase \u5b98\u7f51\u7684\u53f3\u4fa7\u56fe\u6807\u548c\u5927\u56fe\u7247\u662f\u4e00\u56fe\u4e24\u7528\u7684\u60c5\u51b5\uff0c\u6307\u5b9a\u53f3\u4fa7\u56fe\u6807\u548c\u5927\u56fe\u7247\u63a8\u9001\uff0c\u672a\u5c55\u5f00\u6d88\u606f\u65f6\u663e\u793a\u4e3a\u53f3\u4fa7\u56fe\u6807\uff0c\u5c55\u5f00\u6d88\u606f\u540e\u5c55\u793a\u4e3a\u5927\u56fe\u7247\uff0c\u8be6\u60c5\u5982\u4e0b\u56fe\u3002<br><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2022\/12\/20221222152249390.jpg\" width=\"80%\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fdb\u5165 Images.xcassets-AppIcon\uff0c\u8bbe\u7f6e iPhone Notification \u7684\u56fe\u6807\uff0c\u5927\u5c0f\u5206\u522b\u4e3a 40 x 40px\u300160 x 60px<\/p>\n","protected":false},"author":1,"featured_media":15864,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[656],"tags":[157,7385,562],"special":[],"attr":[],"class_list":["post-15863","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app36","tag-apptuisong","tag-7385","tag-jiguangtuisong","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/15863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/comments?post=15863"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/15863\/revisions"}],"predecessor-version":[{"id":15872,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/15863\/revisions\/15872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/media\/15864"}],"wp:attachment":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/media?parent=15863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/categories?post=15863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/tags?post=15863"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/special?post=15863"},{"taxonomy":"attr","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/attr?post=15863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}