{"id":71777,"date":"2026-02-04T11:16:35","date_gmt":"2026-02-04T03:16:35","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/71777.html"},"modified":"2026-02-04T11:16:35","modified_gmt":"2026-02-04T03:16:35","slug":"uniapp-pwa-%e9%97%ae%e9%a2%98%e6%8e%92%e6%9f%a5-02%ef%bc%8cuniapp-pwa-%e5%85%bc%e5%ae%b9%e6%80%a7%e9%80%82%e9%85%8d%e5%85%a8%e6%8c%87%e5%8d%97%ef%bc%9aios-android-%e5%b7%ae%e5%bc%82%e5%a4%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/71777.html","title":{"rendered":"Uniapp + PWA \u95ee\u9898\u6392\u67e5 02\uff0cUniapp PWA \u517c\u5bb9\u6027\u9002\u914d\u5168\u6307\u5357\uff1aiOS\/Android \u5dee\u5f02\u5904\u7406 + \u6d4f\u89c8\u5668\u652f\u6301\u6c47\u603b"},"content":{"rendered":"<p>\u5728\u8de8\u7aef\u5f00\u53d1\u9886\u57df&#xff0c;Uniapp \u51ed\u501f\u201c\u4e00\u5957\u4ee3\u7801\u3001\u591a\u7aef\u53d1\u884c\u201d\u7684\u4f18\u52bf\u6210\u4e3a\u4e3b\u6d41\u6846\u67b6&#xff0c;\u800c PWA&#xff08;\u6e10\u8fdb\u5f0f Web \u5e94\u7528&#xff09;\u5219\u901a\u8fc7\u79bb\u7ebf\u8bbf\u95ee\u3001\u4e3b\u5c4f\u5e55\u5b89\u88c5\u3001\u63a8\u9001\u901a\u77e5\u7b49\u7279\u6027&#xff0c;\u8ba9 Web \u5e94\u7528\u5177\u5907\u539f\u751f App \u7684\u4f53\u9a8c\u3002\u4f46\u5f53\u4e24\u8005\u7ed3\u5408\u65f6&#xff0c;iOS \u4e0e Android \u7cfb\u7edf\u7684\u5dee\u5f02\u3001\u4e0d\u540c\u6d4f\u89c8\u5668\u7684\u652f\u6301\u7a0b\u5ea6&#xff0c;\u5f80\u5f80\u6210\u4e3a\u9002\u914d\u8def\u4e0a\u7684\u201c\u62e6\u8def\u864e\u201d\u3002\u672c\u6587\u5c06\u5168\u9762\u62c6\u89e3 Uniapp PWA \u5728 iOS\/Android \u4e0a\u7684\u6838\u5fc3\u5dee\u5f02\u53ca\u89e3\u51b3\u65b9\u6848&#xff0c;\u6c47\u603b\u4e3b\u6d41\u6d4f\u89c8\u5668\u652f\u6301\u60c5\u51b5&#xff0c;\u52a9\u529b\u5f00\u53d1\u8005\u9ad8\u6548\u641e\u5b9a\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<h3>\u4e00\u3001\u5148\u641e\u61c2&#xff1a;Uniapp PWA \u7684\u6838\u5fc3\u9002\u914d\u75db\u70b9<\/h3>\n<p>PWA \u7684\u6838\u5fc3\u4f9d\u8d56 Service Worker&#xff08;\u79bb\u7ebf\u7f13\u5b58&#xff09;\u3001Web App Manifest&#xff08;\u5e94\u7528\u5143\u6570\u636e&#xff09;\u3001Push API&#xff08;\u63a8\u9001\u901a\u77e5&#xff09;\u7b49\u73b0\u4ee3 Web \u6280\u672f\u3002\u800c Uniapp \u867d\u539f\u751f\u652f\u6301 H5 \u7aef PWA \u7279\u6027&#xff0c;\u4f46\u7531\u4e8e iOS \u548c Android \u7684\u7cfb\u7edf\u5185\u6838\u5dee\u5f02&#xff08;iOS \u4e3a WebKit&#xff0c;Android \u591a\u4e3a Chromium \u884d\u751f\u5185\u6838&#xff09;\u3001\u6d4f\u89c8\u5668\u5382\u5546\u7684\u529f\u80fd\u9650\u5236&#xff0c;\u5bfc\u81f4\u540c\u4e00\u5957\u4ee3\u7801\u5728\u4e0d\u540c\u5e73\u53f0\u8868\u73b0\u4e0d\u4e00\u81f4\u3002\u6838\u5fc3\u9002\u914d\u75db\u70b9\u96c6\u4e2d\u5728&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7cfb\u7edf\u5185\u6838\u9650\u5236&#xff1a;iOS Safari \u5bf9 PWA \u7279\u6027\u652f\u6301\u4e0d\u5b8c\u5168&#xff0c;Android \u7cfb\u7edf WebView \u7248\u672c\u5dee\u5f02\u5927&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4ea4\u4e92\u4f53\u9a8c\u5dee\u5f02&#xff1a;\u4e3b\u5c4f\u5e55\u5b89\u88c5\u56fe\u6807\u3001\u542f\u52a8\u9875\u3001\u5168\u5c4f\u663e\u793a\u7b49\u8868\u73b0\u4e0d\u4e00\u81f4&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6838\u5fc3\u529f\u80fd\u517c\u5bb9\u6027&#xff1a;\u79bb\u7ebf\u7f13\u5b58\u3001\u63a8\u9001\u901a\u77e5\u3001\u540e\u53f0\u540c\u6b65\u7b49\u529f\u80fd\u5728\u4e0d\u540c\u5e73\u53f0\u652f\u6301\u7a0b\u5ea6\u4e0d\u540c&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d4f\u89c8\u5668\u751f\u6001\u5dee\u5f02&#xff1a;\u4e3b\u6d41\u6d4f\u89c8\u5668\u5bf9 PWA \u6838\u5fc3\u6280\u672f\u7684\u652f\u6301\u8303\u56f4\u4e0d\u540c\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e8c\u3001iOS\/Android \u6838\u5fc3\u5dee\u5f02\u53ca\u9002\u914d\u65b9\u6848<\/h3>\n<p>iOS \u548c Android \u662f\u79fb\u52a8\u7aef\u7684\u4e24\u5927\u6838\u5fc3\u5e73\u53f0&#xff0c;\u5176\u5bf9 Uniapp PWA \u7684\u652f\u6301\u5dee\u5f02\u4e3b\u8981\u4f53\u73b0\u5728\u5185\u6838\u7279\u6027\u3001\u529f\u80fd\u9650\u5236\u3001\u914d\u7f6e\u8981\u6c42\u4e09\u4e2a\u5c42\u9762&#xff0c;\u4ee5\u4e0b\u662f\u5173\u952e\u5dee\u5f02\u70b9\u53ca\u9488\u5bf9\u6027\u9002\u914d\u65b9\u6848\u3002<\/p>\n<h4>&#xff08;\u4e00&#xff09;\u5185\u6838\u4e0e WebView \u5dee\u5f02<\/h4>\n<p>\u8fd9\u662f\u4e24\u8005\u5dee\u5f02\u7684\u6839\u6e90&#xff0c;\u76f4\u63a5\u5f71\u54cd PWA \u6838\u5fc3\u6280\u672f\u7684\u652f\u6301\u6548\u679c&#xff1a;<\/p>\n<ul>\n<li>\n<p>iOS \u7aef&#xff1a;\u7edf\u4e00\u4f7f\u7528 WebKit \u5185\u6838&#xff08;WKWebView&#xff0c;iOS 8&#043; \u9ed8\u8ba4&#xff09;&#xff0c;\u4e0d\u652f\u6301\u90e8\u5206 Chromium \u7279\u6709 API&#xff0c;\u4e14 Apple \u5bf9 PWA \u529f\u80fd\u6709\u8f83\u591a\u9650\u5236&#xff08;\u5982\u63a8\u9001\u901a\u77e5\u3001\u540e\u53f0\u540c\u6b65&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Android \u7aef&#xff1a;\u9ed8\u8ba4\u4f7f\u7528\u7cfb\u7edf WebView&#xff08;Android 4.4&#043; \u57fa\u4e8e Chromium \u5185\u6838&#xff09;&#xff0c;\u53ef\u72ec\u7acb\u66f4\u65b0&#xff1b;\u56fd\u5185\u5382\u5546\u591a\u5b9a\u5236\u5316\u5185\u6838&#xff08;\u5982\u817e\u8baf X5\u3001UC \u5185\u6838&#xff09;&#xff0c;\u4f46\u4e3b\u6d41\u5185\u6838\u5bf9 PWA \u652f\u6301\u66f4\u5b8c\u6574\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u9002\u914d\u65b9\u6848&#xff1a;<\/p>\n<li>\n<p>\u901a\u8fc7 Uniapp \u6761\u4ef6\u7f16\u8bd1\u533a\u5206\u5e73\u53f0&#xff0c;\u9488\u5bf9 iOS \u7f16\u5199\u517c\u5bb9\u4ee3\u7801&#xff0c;\u907f\u514d\u4f7f\u7528 Chromium \u7279\u6709 API&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Android \u7aef\u5efa\u8bae\u68c0\u6d4b\u7cfb\u7edf WebView \u7248\u672c&#xff0c;\u5bf9\u4f4e\u7248\u672c&#xff08;Chrome &lt; 40&#xff09;\u63d0\u4f9b\u964d\u7ea7\u65b9\u6848&#xff0c;\u907f\u514d\u4f7f\u7528\u9ad8\u7ea7 HTML5 \u7279\u6027&#xff08;\u5982 IndexedDB\u3001WebGL&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>iOS \u7aef\u5982\u9700\u517c\u5bb9\u65e7\u8bbe\u5907&#xff0c;\u6ce8\u610f WKWebView \u7684\u7279\u6027\u9650\u5236&#xff08;\u5982\u4e0d\u652f\u6301 WebSQL\u3001\u8de8\u57df\u9650\u5236\u4e25\u683c&#xff09;&#xff0c;\u5fc5\u8981\u65f6\u901a\u8fc7\u539f\u751f\u63d2\u4ef6\u8865\u5145\u529f\u80fd\u3002<\/p>\n<\/li>\n<h4>&#xff08;\u4e8c&#xff09;\u4e3b\u5c4f\u5e55\u5b89\u88c5\u4e0e\u56fe\u6807\/\u542f\u52a8\u9875\u9002\u914d<\/h4>\n<p>PWA \u7684\u201c\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55\u201d\u529f\u80fd\u662f\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u7684\u5173\u952e&#xff0c;\u4f46\u4e24\u8005\u7684\u8868\u73b0\u548c\u914d\u7f6e\u8981\u6c42\u5dee\u5f02\u8f83\u5927&#xff1a;<\/p>\n<ul>\n<li>\n<p>iOS \u7aef&#xff1a;\u9ed8\u8ba4\u4e0d\u663e\u793a\u201c\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55\u201d\u63d0\u793a&#xff0c;\u9700\u7528\u6237\u624b\u52a8\u901a\u8fc7 Safari \u5206\u4eab\u83dc\u5355\u64cd\u4f5c&#xff1b;\u56fe\u6807\u65e0\u9ed8\u8ba4\u5706\u89d2\u9634\u5f71&#xff0c;\u542f\u52a8\u9875\u65e0\u6cd5\u81ea\u5b9a\u4e49&#xff0c;\u4e14 Manifest \u6587\u4ef6\u4e2d\u7684\u90e8\u5206\u914d\u7f6e\u4e0d\u751f\u6548&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Android \u7aef&#xff1a;\u4e3b\u6d41\u6d4f\u89c8\u5668&#xff08;Chrome\u3001Edge\u3001\u4e09\u661f\u6d4f\u89c8\u5668&#xff09;\u4f1a\u4e3b\u52a8\u63d0\u793a\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55&#xff1b;\u652f\u6301 Manifest \u4e2d\u7684\u56fe\u6807\u3001\u542f\u52a8\u9875\u914d\u7f6e&#xff0c;\u53ef\u76f4\u63a5\u751f\u6548\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u9002\u914d\u65b9\u6848&#xff1a;<\/p>\n<li>\n<p>\u56fe\u6807\u9002\u914d&#xff1a;<\/p>\n<ul>\n<li>iOS \u7aef&#xff1a;\u901a\u8fc7 Apple \u4e13\u7528 meta \u6807\u7b7e\u914d\u7f6e\u56fe\u6807&#xff08;\u5982 apple-touch-icon&#xff09;&#xff0c;\u6307\u5b9a\u4e0d\u540c\u5c3a\u5bf8&#xff08;120&#215;120\u3001180&#215;180&#xff09;&#xff0c;\u5e76\u901a\u8fc7 CSS \u624b\u52a8\u6dfb\u52a0\u5706\u89d2\u9634\u5f71&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<p><span class=\"token comment\">\/* iOS \u56fe\u6807\u5706\u89d2\u9634\u5f71\u9002\u914d *\/<\/span><br \/>\n    &#064;media screen and <span class=\"token punctuation\">(<\/span>min<span class=\"token operator\">&#8211;<\/span>width<span class=\"token punctuation\">:<\/span> 375px<span class=\"token punctuation\">)<\/span> and <span class=\"token punctuation\">(<\/span>max<span class=\"token operator\">&#8211;<\/span>width<span class=\"token punctuation\">:<\/span> 667px<span class=\"token punctuation\">)<\/span> and <span class=\"token punctuation\">(<\/span>orientation<span class=\"token punctuation\">:<\/span> portrait<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      link<span class=\"token punctuation\">[<\/span>rel<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;apple-touch-icon&#034;<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token operator\">&#8211;<\/span>webkit<span class=\"token operator\">&#8211;<\/span>mask<span class=\"token operator\">&#8211;<\/span>image<span class=\"token punctuation\">:<\/span> <span class=\"token operator\">&#8211;<\/span>webkit<span class=\"token operator\">&#8211;<\/span>radial<span class=\"token operator\">&#8211;<\/span><span class=\"token function\">gradient<\/span><span class=\"token punctuation\">(<\/span>white<span class=\"token punctuation\">,<\/span> black<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        mask<span class=\"token operator\">&#8211;<\/span>image<span class=\"token punctuation\">:<\/span> radial<span class=\"token operator\">&#8211;<\/span><span class=\"token function\">gradient<\/span><span class=\"token punctuation\">(<\/span>circle at center<span class=\"token punctuation\">,<\/span> white <span class=\"token number\">0<\/span><span class=\"token operator\">%<\/span><span class=\"token punctuation\">,<\/span> black <span class=\"token number\">100<\/span><span class=\"token operator\">%<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>&#8211; Android \u7aef&#xff1a;\u5728 Manifest \u6587\u4ef6\u4e2d\u914d\u7f6e\u591a\u79cd\u5c3a\u5bf8\u56fe\u6807&#xff08;48&#215;48\u300172&#215;72\u300196&#215;96\u3001144&#215;144&#xff09;&#xff0c;\u786e\u4fdd\u4e0d\u540c\u8bbe\u5907\u663e\u793a\u6e05\u6670\u3002<\/p>\n<li>\n<p>\u542f\u52a8\u9875\u9002\u914d&#xff1a;<\/p>\n<ul>\n<li>\n<p>iOS \u7aef&#xff1a;\u4f7f\u7528 apple-touch-startup-image \u6807\u7b7e\u914d\u7f6e\u542f\u52a8\u9875&#xff0c;\u9700\u9002\u914d\u4e0d\u540c\u5c4f\u5e55\u5c3a\u5bf8&#xff08;\u5982 iPhone 14 \u4e3a 1170&#215;2532&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Android \u7aef&#xff1a;\u5728 Manifest \u6587\u4ef6\u4e2d\u901a\u8fc7 start_url \u548c background_color \u914d\u7f6e\u542f\u52a8\u9875&#xff0c;\u914d\u5408 Service Worker \u7f13\u5b58\u542f\u52a8\u8d44\u6e90\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5f15\u5bfc\u6dfb\u52a0&#xff1a;\u5728\u5e94\u7528\u5185\u6dfb\u52a0\u5f15\u5bfc\u6587\u6848&#xff0c;\u63d0\u793a iOS \u7528\u6237\u901a\u8fc7 Safari \u5206\u4eab\u83dc\u5355\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55&#xff0c;Android \u7528\u6237\u76f4\u63a5\u70b9\u51fb\u6d4f\u89c8\u5668\u63d0\u793a\u3002<\/p>\n<\/li>\n<h4>&#xff08;\u4e09&#xff09;\u6838\u5fc3\u529f\u80fd\u517c\u5bb9\u6027\u5dee\u5f02<\/h4>\n<p>PWA \u7684\u79bb\u7ebf\u7f13\u5b58\u3001\u63a8\u9001\u901a\u77e5\u7b49\u6838\u5fc3\u529f\u80fd\u5728\u4e24\u7aef\u652f\u6301\u5dee\u5f02\u6700\u5927&#xff0c;\u9700\u91cd\u70b9\u9002\u914d&#xff1a;<\/p>\n<h5>1. \u79bb\u7ebf\u7f13\u5b58&#xff08;Service Worker&#xff09;<\/h5>\n<ul>\n<li>\n<p>iOS \u7aef&#xff1a;\u652f\u6301 Service Worker&#xff0c;\u4f46\u5b58\u5728\u9650\u5236&#xff08;\u5982\u79bb\u7ebf\u7f13\u5b58\u5bb9\u91cf\u8f83\u5c0f\u3001\u540e\u53f0\u7f13\u5b58\u6613\u5931\u6548\u3001\u4e0d\u652f\u6301\u7f13\u5b58\u97f3\u89c6\u9891&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Android \u7aef&#xff1a;\u4e3b\u6d41\u6d4f\u89c8\u5668\u5b8c\u5168\u652f\u6301 Service Worker&#xff0c;\u7f13\u5b58\u5bb9\u91cf\u66f4\u5927&#xff0c;\u652f\u6301\u540e\u53f0\u540c\u6b65\u3001\u9884\u7f13\u5b58\u7b49\u9ad8\u7ea7\u7279\u6027\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u9002\u914d\u65b9\u6848&#xff1a;<\/p>\n<li>\n<p>\u4f7f\u7528 Workbox \u5e93\u7ba1\u7406 Service Worker \u7f13\u5b58&#xff0c;Uniapp \u9879\u76ee\u53ef\u901a\u8fc7\u914d\u7f6e vue.config.js \u96c6\u6210 Workbox&#xff0c;\u7b80\u5316\u7f13\u5b58\u7b56\u7565\u914d\u7f6e&#xff1b;<\/p>\n<\/li>\n<li>\n<p>iOS \u7aef\u907f\u514d\u7f13\u5b58\u5927\u4f53\u79ef\u8d44\u6e90&#xff08;\u5982\u97f3\u89c6\u9891&#xff09;&#xff0c;\u4f18\u5148\u7f13\u5b58\u6838\u5fc3\u9875\u9762\u548c\u9759\u6001\u8d44\u6e90&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u7f13\u5b58\u66f4\u65b0\u63d0\u793a&#xff0c;\u5f53 Service Worker \u6709\u65b0\u7248\u672c\u65f6&#xff0c;\u4e3b\u52a8\u63d0\u793a\u7528\u6237\u5237\u65b0\u9875\u9762\u3002<\/p>\n<\/li>\n<h5>2. \u63a8\u9001\u901a\u77e5&#xff08;Push API&#xff09;<\/h5>\n<ul>\n<li>\n<p>iOS \u7aef&#xff1a;Safari \u5b8c\u5168\u4e0d\u652f\u6301 Push API&#xff0c;\u65e0\u6cd5\u5b9e\u73b0\u539f\u751f\u63a8\u9001\u901a\u77e5&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Android \u7aef&#xff1a;Chrome\u3001Edge \u7b49\u57fa\u4e8e Chromium \u7684\u6d4f\u89c8\u5668\u652f\u6301 Push API&#xff0c;\u53ef\u901a\u8fc7 Firebase Cloud Messaging&#xff08;FCM&#xff09;\u6216\u56fd\u5185\u63a8\u9001\u670d\u52a1&#xff08;\u5982\u6781\u5149\u63a8\u9001&#xff09;\u5b9e\u73b0\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u9002\u914d\u65b9\u6848&#xff1a;<\/p>\n<li>\n<p>iOS \u7aef&#xff1a;\u901a\u8fc7\u201c\u77ed\u4fe1\u63a8\u9001 &#043; \u5e94\u7528\u5185\u6d88\u606f\u201d\u66ff\u4ee3\u539f\u751f\u63a8\u9001&#xff0c;\u6216\u5f15\u5bfc\u7528\u6237\u5b89\u88c5\u539f\u751f App \u5b9e\u73b0\u63a8\u9001\u529f\u80fd&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Android \u7aef&#xff1a;\u96c6\u6210 Push API&#xff0c;\u914d\u5408 Service Worker \u5b9e\u73b0\u540e\u53f0\u63a5\u6536\u901a\u77e5&#xff0c;\u6ce8\u610f\u7533\u8bf7\u63a8\u9001\u6743\u9650\u3002<\/p>\n<\/li>\n<h5>3. \u4ea4\u4e92\u4f53\u9a8c\u5dee\u5f02<\/h5>\n<ul>\n<li>\n<p>iOS \u7aef&#xff1a;\u5b58\u5728\u5f39\u6027\u6eda\u52a8&#xff08;bounce&#xff09;&#xff0c;\u53ef\u80fd\u5f71\u54cd\u9875\u9762\u5e03\u5c40&#xff1b;\u90e8\u5206\u624b\u52bf\u4e8b\u4ef6&#xff08;\u5982\u6ed1\u52a8\u8fd4\u56de&#xff09;\u4e0e\u5e94\u7528\u4ea4\u4e92\u51b2\u7a81&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Android \u7aef&#xff1a;\u6eda\u52a8\u4f53\u9a8c\u63a5\u8fd1\u539f\u751f&#xff0c;\u624b\u52bf\u4e8b\u4ef6\u652f\u6301\u66f4\u5b8c\u6574&#xff0c;\u4f46\u4e0d\u540c\u5382\u5546\u5b9a\u5236\u7cfb\u7edf\u53ef\u80fd\u5b58\u5728\u624b\u52bf\u5dee\u5f02\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u9002\u914d\u65b9\u6848&#xff1a;<\/p>\n<li>iOS \u7aef\u7981\u6b62\u5f39\u6027\u6eda\u52a8&#xff1a;<\/li>\n<p><span class=\"token comment\">\/\/ \u7981\u6b62 iOS \u5f39\u6027\u6eda\u52a8<\/span><br \/>\ndocument<span class=\"token punctuation\">.<\/span>body<span class=\"token punctuation\">.<\/span><span class=\"token function\">addEventListener<\/span><span class=\"token punctuation\">(<\/span><span class=\"token char\">&#039;touchmove&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token function\">function<\/span><span class=\"token punctuation\">(<\/span>e<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  e<span class=\"token punctuation\">.<\/span><span class=\"token function\">preventDefault<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span> passive<span class=\"token punctuation\">:<\/span> <span class=\"token boolean\">false<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<li>\n<p>\u901a\u8fc7 CSS \u9002\u914d\u6eda\u52a8\u6837\u5f0f&#xff0c;\u907f\u514d\u9875\u9762\u5143\u7d20\u88ab\u6eda\u52a8\u884c\u4e3a\u906e\u6321&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u9488\u5bf9\u4e24\u7aef\u624b\u52bf\u5dee\u5f02&#xff0c;\u4f7f\u7528 Uniapp \u7684 uni.onTouchStart \u7b49\u8de8\u7aef API \u5904\u7406\u624b\u52bf\u4e8b\u4ef6&#xff0c;\u51cf\u5c11\u539f\u751f\u4e8b\u4ef6\u4f9d\u8d56\u3002<\/p>\n<\/li>\n<h4>&#xff08;\u56db&#xff09;Uniapp \u5de5\u7a0b\u914d\u7f6e\u5dee\u5f02<\/h4>\n<p>Uniapp \u9879\u76ee\u7684 manifest.json \u914d\u7f6e\u9700\u9488\u5bf9\u4e24\u7aef\u505a\u5dee\u5f02\u5316\u8bbe\u7f6e&#xff1a;<\/p>\n<li>\n<p>iOS \u7aef&#xff1a;\u9700\u914d\u7f6e apple-touch-icon\u3001apple-mobile-web-app-status-bar-style \u7b49 Apple \u4e13\u7528 meta \u6807\u7b7e&#xff0c;\u53ef\u5728 Uniapp \u7684 index.html \u4e2d\u76f4\u63a5\u6dfb\u52a0&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Android \u7aef&#xff1a;\u5728 manifest.json \u7684 h5 \u8282\u70b9\u4e2d\u914d\u7f6e PWA \u76f8\u5173\u53c2\u6570&#xff08;\u5982 manifest \u8def\u5f84\u3001Service Worker \u8def\u5f84&#xff09;&#xff0c;\u5e76\u786e\u4fdd\u6743\u9650\u58f0\u660e\u5b8c\u6574&#xff08;\u5982\u7f51\u7edc\u6743\u9650\u3001\u5b58\u50a8\u6743\u9650&#xff09;\u3002<\/p>\n<\/li>\n<p>\u793a\u4f8b\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;h5&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;pwa&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;manifest&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;manifest.json&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;serviceWorker&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;service-worker.js&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;app-plus&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;distribute&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;ios&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;meta&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          <span class=\"token string-property property\">&#034;apple-touch-icon&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\/static\/icon\/ios\/180&#215;180.png&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          <span class=\"token string-property property\">&#034;apple-mobile-web-app-status-bar-style&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;black&#034;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;android&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;permissions&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;android.permission.INTERNET&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;android.permission.WRITE_EXTERNAL_STORAGE&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>\u4e09\u3001\u4e3b\u6d41\u6d4f\u89c8\u5668 PWA \u652f\u6301\u60c5\u51b5\u6c47\u603b<\/h3>\n<p>\u9664\u4e86\u7cfb\u7edf\u5dee\u5f02&#xff0c;\u6d4f\u89c8\u5668\u5bf9 PWA \u6838\u5fc3\u6280\u672f\u7684\u652f\u6301\u7a0b\u5ea6\u4e5f\u76f4\u63a5\u5f71\u54cd\u9002\u914d\u6548\u679c\u3002\u4ee5\u4e0b\u662f\u4e3b\u6d41\u6d4f\u89c8\u5668\u7684\u652f\u6301\u60c5\u51b5\u6c47\u603b&#xff08;\u622a\u81f3 2025 \u5e74&#xff0c;\u6570\u636e\u6765\u6e90&#xff1a;\u5b98\u65b9\u6587\u6863\u53ca\u5b9e\u6d4b&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u6d4f\u89c8\u5668\u6838\u5fc3\u6280\u672f\u652f\u6301\u5e73\u53f0\u652f\u6301\u8303\u56f4\u5173\u952e\u5907\u6ce8<\/tr>\n<tbody>\n<tr>\n<td>Google Chrome<\/td>\n<td>\u5b8c\u5168\u652f\u6301 Service Worker\u3001Manifest\u3001Push API\u3001\u540e\u53f0\u540c\u6b65<\/td>\n<td>Windows\u3001macOS\u3001Linux\u3001Android\u3001iOS<\/td>\n<td>iOS \u7aef\u53d7 WebKit \u9650\u5236&#xff0c;\u90e8\u5206\u529f\u80fd&#xff08;\u5982 Push API&#xff09;\u4e0d\u53ef\u7528&#xff1b;Android \u7aef\u652f\u6301\u6700\u5b8c\u6574<\/td>\n<\/tr>\n<tr>\n<td>Microsoft Edge&#xff08;Chromium \u7248&#xff09;<\/td>\n<td>\u5b8c\u5168\u652f\u6301 Service Worker\u3001Manifest\u3001Push API\u3001\u540e\u53f0\u540c\u6b65<\/td>\n<td>Windows\u3001macOS\u3001Linux\u3001Android\u3001iOS<\/td>\n<td>\u4f53\u9a8c\u4e0e Chrome \u63a5\u8fd1&#xff0c;iOS \u7aef\u9650\u5236\u540c Chrome<\/td>\n<\/tr>\n<tr>\n<td>Apple Safari<\/td>\n<td>\u90e8\u5206\u652f\u6301 Service Worker\u3001Manifest&#xff1b;\u4e0d\u652f\u6301 Push API\u3001\u540e\u53f0\u540c\u6b65<\/td>\n<td>macOS\u3001iOS\u3001iPadOS<\/td>\n<td>iOS \u7aef\u9700\u624b\u52a8\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55&#xff1b;Manifest \u90e8\u5206\u914d\u7f6e\u9700\u901a\u8fc7 Apple \u4e13\u7528\u6807\u7b7e\u66ff\u4ee3<\/td>\n<\/tr>\n<tr>\n<td>Mozilla Firefox<\/td>\n<td>Android \u7aef\u652f\u6301 Service Worker\u3001Manifest&#xff1b;\u684c\u9762\u7aef\u4e0d\u652f\u6301 PWA \u5b89\u88c5<\/td>\n<td>Windows\u3001macOS\u3001Linux\u3001Android<\/td>\n<td>\u684c\u9762\u7aef\u5df2\u653e\u5f03 PWA \u5b9e\u4f5c&#xff1b;Android \u7aef\u652f\u6301\u7a0b\u5ea6\u6709\u9650&#xff0c;\u4e0d\u63a8\u8350\u4f5c\u4e3a\u4e3b\u529b\u6d4f\u89c8\u5668<\/td>\n<\/tr>\n<tr>\n<td>\u4e09\u661f Internet<\/td>\n<td>\u5b8c\u5168\u652f\u6301 Service Worker\u3001Manifest\u3001Push API<\/td>\n<td>Android<\/td>\n<td>\u4e09\u661f\u624b\u673a\u9ed8\u8ba4\u6d4f\u89c8\u5668&#xff0c;\u9002\u914d\u6027\u826f\u597d&#xff0c;\u652f\u6301\u4e3b\u5c4f\u5e55\u5b89\u88c5\u548c\u79bb\u7ebf\u7f13\u5b58<\/td>\n<\/tr>\n<tr>\n<td>\u56fd\u5185\u6d4f\u89c8\u5668&#xff08;\u5fae\u4fe1\u3001QQ\u3001UC&#xff09;<\/td>\n<td>\u5fae\u4fe1\/QQ \u5185\u7f6e\u6d4f\u89c8\u5668\u652f\u6301 Service Worker\u3001Manifest&#xff1b;UC \u652f\u6301\u90e8\u5206\u529f\u80fd<\/td>\n<td>iOS\u3001Android<\/td>\n<td>\u5fae\u4fe1\/QQ \u9700\u5f00\u542f\u201c\u6d4f\u89c8\u5668\u6a21\u5f0f\u201d&#xff1b;\u90e8\u5206\u529f\u80fd\u53d7\u5e73\u53f0\u9650\u5236&#xff08;\u5982\u63a8\u9001\u3001\u4e3b\u5c4f\u5e55\u5b89\u88c5&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u6d4f\u89c8\u5668\u9002\u914d\u5efa\u8bae<\/h4>\n<li>\n<p>\u4f18\u5148\u9002\u914d Chrome\u3001Edge\u3001\u4e09\u661f Internet \u7b49\u5b8c\u5168\u652f\u6301 PWA \u7684\u6d4f\u89c8\u5668&#xff0c;\u8986\u76d6\u7edd\u5927\u591a\u6570 Android \u7528\u6237&#xff1b;<\/p>\n<\/li>\n<li>\n<p>iOS \u7aef\u91cd\u70b9\u9002\u914d Safari&#xff0c;\u901a\u8fc7\u4e13\u7528\u6807\u7b7e\u548c\u964d\u7ea7\u65b9\u6848\u5f25\u8865\u529f\u80fd\u7f3a\u5931&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u56fd\u5185\u573a\u666f\u9700\u9002\u914d\u5fae\u4fe1\/QQ \u5185\u7f6e\u6d4f\u89c8\u5668&#xff0c;\u907f\u514d\u4f7f\u7528\u5176\u4e0d\u652f\u6301\u7684 PWA \u529f\u80fd&#xff08;\u5982 Push API&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5728\u5e94\u7528\u542f\u52a8\u65f6\u68c0\u6d4b\u6d4f\u89c8\u5668\u7c7b\u578b\u548c\u7248\u672c&#xff0c;\u5bf9\u4e0d\u652f\u6301 PWA \u6838\u5fc3\u529f\u80fd\u7684\u6d4f\u89c8\u5668&#xff0c;\u663e\u793a\u201c\u5efa\u8bae\u4f7f\u7528 Chrome \u7b49\u73b0\u4ee3\u6d4f\u89c8\u5668\u201d\u7684\u63d0\u793a\u3002<\/p>\n<\/li>\n<h3>\u56db\u3001Uniapp PWA \u9002\u914d\u5de5\u5177\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h3>\n<h4>&#xff08;\u4e00&#xff09;\u5fc5\u5907\u9002\u914d\u5de5\u5177<\/h4>\n<li>\n<p>Workbox&#xff1a;Google \u5b98\u65b9 PWA \u5de5\u5177\u5e93&#xff0c;\u53ef\u5feb\u901f\u5b9e\u73b0 Service Worker \u7f13\u5b58\u7b56\u7565&#xff0c;Uniapp \u9879\u76ee\u53ef\u901a\u8fc7 vue.config.js \u96c6\u6210&#xff1b;<\/p>\n<\/li>\n<li>\n<p>Uniapp \u6761\u4ef6\u7f16\u8bd1&#xff1a;\u901a\u8fc7 #ifdef H5\u3001#ifdef IOS \u7b49\u8bed\u6cd5&#xff0c;\u7f16\u5199\u5e73\u53f0\u5dee\u5f02\u5316\u4ee3\u7801&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\u68c0\u6d4b\u5de5\u5177&#xff1a;Can I Use&#xff08;https:\/\/caniuse.com\/&#xff09;&#xff0c;\u67e5\u8be2 PWA \u6280\u672f\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u7684\u652f\u6301\u60c5\u51b5&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u771f\u673a\u8c03\u8bd5\u5de5\u5177&#xff1a;Chrome DevTools&#xff08;Android \u7aef&#xff09;\u3001Safari \u5f00\u53d1\u8005\u5de5\u5177&#xff08;iOS \u7aef&#xff09;&#xff0c;\u5b9e\u65f6\u8c03\u8bd5 PWA \u529f\u80fd\u3002<\/p>\n<\/li>\n<h4>&#xff08;\u4e8c&#xff09;\u6700\u4f73\u5b9e\u8df5\u603b\u7ed3<\/h4>\n<li>\n<p>\u6e10\u8fdb\u5f0f\u9002\u914d&#xff1a;\u6838\u5fc3\u529f\u80fd&#xff08;\u5982\u9875\u9762\u5c55\u793a\u3001\u57fa\u7840\u4ea4\u4e92&#xff09;\u4f18\u5148\u9002\u914d\u6240\u6709\u6d4f\u89c8\u5668&#xff0c;\u9ad8\u7ea7\u529f\u80fd&#xff08;\u5982\u79bb\u7ebf\u7f13\u5b58\u3001\u63a8\u9001&#xff09;\u9488\u5bf9\u652f\u6301\u7684\u6d4f\u89c8\u5668\u5b9e\u73b0&#xff0c;\u4e0d\u652f\u6301\u7684\u6d4f\u89c8\u5668\u63d0\u4f9b\u964d\u7ea7\u65b9\u6848&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u8d44\u6e90\u4f18\u5316&#xff1a;\u538b\u7f29\u9759\u6001\u8d44\u6e90&#xff08;\u56fe\u7247\u3001JS\u3001CSS&#xff09;&#xff0c;\u51cf\u5c11\u7f13\u5b58\u4f53\u79ef&#xff1b;\u5bf9\u5927\u4f53\u79ef\u8d44\u6e90&#xff08;\u5982\u97f3\u89c6\u9891&#xff09;&#xff0c;\u907f\u514d\u901a\u8fc7 Service Worker \u7f13\u5b58&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5b89\u5168\u4fdd\u969c&#xff1a;PWA \u5f3a\u5236\u8981\u6c42 HTTPS \u534f\u8bae&#xff0c;\u786e\u4fdd\u6240\u6709\u8d44\u6e90\u901a\u8fc7 HTTPS \u52a0\u8f7d&#xff1b;\u654f\u611f\u6570\u636e\u9700\u52a0\u5bc6\u5b58\u50a8&#xff0c;\u907f\u514d Service Worker \u7f13\u5b58\u6f0f\u6d1e\u98ce\u9669&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6301\u7eed\u6d4b\u8bd5&#xff1a;\u5728\u4e0d\u540c\u7cfb\u7edf&#xff08;iOS 12&#043;\u3001Android 6&#043;&#xff09;\u3001\u4e0d\u540c\u6d4f\u89c8\u5668\u3001\u4e0d\u540c\u673a\u578b\u4e0a\u8fdb\u884c\u771f\u673a\u6d4b\u8bd5&#xff0c;\u91cd\u70b9\u9a8c\u8bc1\u79bb\u7ebf\u7f13\u5b58\u3001\u4e3b\u5c4f\u5e55\u5b89\u88c5\u3001\u4ea4\u4e92\u4f53\u9a8c\u7b49\u6838\u5fc3\u573a\u666f&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u7248\u672c\u66f4\u65b0&#xff1a;\u901a\u8fc7 Service Worker \u5b9e\u73b0\u5e94\u7528\u7248\u672c\u81ea\u52a8\u68c0\u6d4b\u548c\u66f4\u65b0&#xff0c;\u907f\u514d\u7528\u6237\u4f7f\u7528\u8fc7\u671f\u7f13\u5b58\u8d44\u6e90\u3002<\/p>\n<\/li>\n<h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<p>Uniapp PWA \u7684\u517c\u5bb9\u6027\u9002\u914d\u6838\u5fc3\u5728\u4e8e\u201c\u5dee\u5f02\u5316\u5904\u7406\u201d\u2014\u2014\u65e2\u8981\u5e94\u5bf9 iOS \u4e0e Android \u7684\u7cfb\u7edf\u5185\u6838\u5dee\u5f02&#xff0c;\u4e5f\u8981\u9002\u914d\u4e0d\u540c\u6d4f\u89c8\u5668\u7684\u529f\u80fd\u9650\u5236\u3002\u901a\u8fc7\u672c\u6587\u68b3\u7406\u7684\u5dee\u5f02\u70b9\u3001\u9002\u914d\u65b9\u6848\u548c\u6700\u4f73\u5b9e\u8df5&#xff0c;\u5f00\u53d1\u8005\u53ef\u5feb\u901f\u89e3\u51b3\u4e3b\u5c4f\u5e55\u5b89\u88c5\u3001\u79bb\u7ebf\u7f13\u5b58\u3001\u4ea4\u4e92\u4f53\u9a8c\u7b49\u6838\u5fc3\u9002\u914d\u95ee\u9898\u3002\u8bb0\u4f4f&#xff0c;PWA \u9002\u914d\u4e0d\u662f\u201c\u4e00\u5200\u5207\u201d&#xff0c;\u800c\u662f\u901a\u8fc7\u6e10\u8fdb\u5f0f\u4f18\u5316\u548c\u964d\u7ea7\u7b56\u7565&#xff0c;\u8ba9\u4e0d\u540c\u5e73\u53f0\u3001\u4e0d\u540c\u6d4f\u89c8\u5668\u7684\u7528\u6237\u90fd\u80fd\u83b7\u5f97\u826f\u597d\u7684\u4f53\u9a8c\u3002<\/p>\n<p>\u6700\u540e&#xff0c;\u968f\u7740\u6d4f\u89c8\u5668\u6280\u672f\u7684\u4e0d\u65ad\u66f4\u65b0&#xff0c;PWA \u7684\u652f\u6301\u60c5\u51b5\u4e5f\u4f1a\u6301\u7eed\u53d8\u5316&#xff0c;\u5efa\u8bae\u5f00\u53d1\u8005\u5b9a\u671f\u5173\u6ce8\u5b98\u65b9\u6587\u6863\u548c\u517c\u5bb9\u6027\u5de5\u5177&#xff0c;\u53ca\u65f6\u8c03\u6574\u9002\u914d\u7b56\u7565\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u8de8\u7aef\u5f00\u53d1\u9886\u57df&#xff0c;Uniapp \u51ed\u501f\u201c\u4e00\u5957\u4ee3\u7801\u3001\u591a\u7aef\u53d1\u884c\u201d\u7684\u4f18\u52bf\u6210\u4e3a\u4e3b\u6d41\u6846\u67b6&#xff0c;\u800c PWA&#xff08;\u6e10\u8fdb\u5f0f Web \u5e94\u7528&#xff09;\u5219\u901a\u8fc7\u79bb\u7ebf\u8bbf\u95ee\u3001\u4e3b\u5c4f\u5e55\u5b89\u88c5\u3001\u63a8\u9001\u901a\u77e5\u7b49\u7279\u6027&#xff0c;\u8ba9 Web \u5e94\u7528\u5177\u5907\u539f\u751f App \u7684\u4f53\u9a8c\u3002\u4f46\u5f53\u4e24\u8005\u7ed3\u5408\u65f6&#xff0c;iOS \u4e0e Android \u7cfb\u7edf\u7684\u5dee\u5f02\u3001\u4e0d\u540c\u6d4f\u89c8\u5668\u7684\u652f\u6301\u7a0b\u5ea6&#xff0c;\u5f80\u5f80\u6210\u4e3a\u9002\u914d\u8def\u4e0a\u7684\u201c\u62e6\u8def\u864e\u201d\u3002\u672c\u6587\u5c06\u5168\u9762\u62c6\u89e3 Uniapp PWA \u5728 iOS\/Android \u4e0a\u7684\u6838\u5fc3\u5dee\u5f02<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[387,87,188],"topic":[],"class_list":["post-71777","post","type-post","status-publish","format-standard","hentry","category-server","tag-uni-app","tag-87","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Uniapp + PWA \u95ee\u9898\u6392\u67e5 02\uff0cUniapp PWA \u517c\u5bb9\u6027\u9002\u914d\u5168\u6307\u5357\uff1aiOS\/Android \u5dee\u5f02\u5904\u7406 + \u6d4f\u89c8\u5668\u652f\u6301\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/71777.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Uniapp + PWA \u95ee\u9898\u6392\u67e5 02\uff0cUniapp PWA \u517c\u5bb9\u6027\u9002\u914d\u5168\u6307\u5357\uff1aiOS\/Android \u5dee\u5f02\u5904\u7406 + \u6d4f\u89c8\u5668\u652f\u6301\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u8de8\u7aef\u5f00\u53d1\u9886\u57df&#xff0c;Uniapp \u51ed\u501f\u201c\u4e00\u5957\u4ee3\u7801\u3001\u591a\u7aef\u53d1\u884c\u201d\u7684\u4f18\u52bf\u6210\u4e3a\u4e3b\u6d41\u6846\u67b6&#xff0c;\u800c PWA&#xff08;\u6e10\u8fdb\u5f0f Web \u5e94\u7528&#xff09;\u5219\u901a\u8fc7\u79bb\u7ebf\u8bbf\u95ee\u3001\u4e3b\u5c4f\u5e55\u5b89\u88c5\u3001\u63a8\u9001\u901a\u77e5\u7b49\u7279\u6027&#xff0c;\u8ba9 Web \u5e94\u7528\u5177\u5907\u539f\u751f App \u7684\u4f53\u9a8c\u3002\u4f46\u5f53\u4e24\u8005\u7ed3\u5408\u65f6&#xff0c;iOS \u4e0e Android \u7cfb\u7edf\u7684\u5dee\u5f02\u3001\u4e0d\u540c\u6d4f\u89c8\u5668\u7684\u652f\u6301\u7a0b\u5ea6&#xff0c;\u5f80\u5f80\u6210\u4e3a\u9002\u914d\u8def\u4e0a\u7684\u201c\u62e6\u8def\u864e\u201d\u3002\u672c\u6587\u5c06\u5168\u9762\u62c6\u89e3 Uniapp PWA \u5728 iOS\/Android \u4e0a\u7684\u6838\u5fc3\u5dee\u5f02\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/71777.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-04T03:16:35+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/71777.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/71777.html\",\"name\":\"Uniapp + PWA \u95ee\u9898\u6392\u67e5 02\uff0cUniapp PWA \u517c\u5bb9\u6027\u9002\u914d\u5168\u6307\u5357\uff1aiOS\/Android \u5dee\u5f02\u5904\u7406 + \u6d4f\u89c8\u5668\u652f\u6301\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-04T03:16:35+00:00\",\"dateModified\":\"2026-02-04T03:16:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/71777.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/71777.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/71777.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Uniapp + PWA \u95ee\u9898\u6392\u67e5 02\uff0cUniapp PWA \u517c\u5bb9\u6027\u9002\u914d\u5168\u6307\u5357\uff1aiOS\/Android \u5dee\u5f02\u5904\u7406 + \u6d4f\u89c8\u5668\u652f\u6301\u6c47\u603b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Uniapp + PWA \u95ee\u9898\u6392\u67e5 02\uff0cUniapp PWA \u517c\u5bb9\u6027\u9002\u914d\u5168\u6307\u5357\uff1aiOS\/Android \u5dee\u5f02\u5904\u7406 + \u6d4f\u89c8\u5668\u652f\u6301\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/71777.html","og_locale":"zh_CN","og_type":"article","og_title":"Uniapp + PWA \u95ee\u9898\u6392\u67e5 02\uff0cUniapp PWA \u517c\u5bb9\u6027\u9002\u914d\u5168\u6307\u5357\uff1aiOS\/Android \u5dee\u5f02\u5904\u7406 + \u6d4f\u89c8\u5668\u652f\u6301\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u8de8\u7aef\u5f00\u53d1\u9886\u57df&#xff0c;Uniapp \u51ed\u501f\u201c\u4e00\u5957\u4ee3\u7801\u3001\u591a\u7aef\u53d1\u884c\u201d\u7684\u4f18\u52bf\u6210\u4e3a\u4e3b\u6d41\u6846\u67b6&#xff0c;\u800c PWA&#xff08;\u6e10\u8fdb\u5f0f Web \u5e94\u7528&#xff09;\u5219\u901a\u8fc7\u79bb\u7ebf\u8bbf\u95ee\u3001\u4e3b\u5c4f\u5e55\u5b89\u88c5\u3001\u63a8\u9001\u901a\u77e5\u7b49\u7279\u6027&#xff0c;\u8ba9 Web \u5e94\u7528\u5177\u5907\u539f\u751f App \u7684\u4f53\u9a8c\u3002\u4f46\u5f53\u4e24\u8005\u7ed3\u5408\u65f6&#xff0c;iOS \u4e0e Android \u7cfb\u7edf\u7684\u5dee\u5f02\u3001\u4e0d\u540c\u6d4f\u89c8\u5668\u7684\u652f\u6301\u7a0b\u5ea6&#xff0c;\u5f80\u5f80\u6210\u4e3a\u9002\u914d\u8def\u4e0a\u7684\u201c\u62e6\u8def\u864e\u201d\u3002\u672c\u6587\u5c06\u5168\u9762\u62c6\u89e3 Uniapp PWA \u5728 iOS\/Android \u4e0a\u7684\u6838\u5fc3\u5dee\u5f02","og_url":"https:\/\/www.wsisp.com\/helps\/71777.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-04T03:16:35+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/71777.html","url":"https:\/\/www.wsisp.com\/helps\/71777.html","name":"Uniapp + PWA \u95ee\u9898\u6392\u67e5 02\uff0cUniapp PWA \u517c\u5bb9\u6027\u9002\u914d\u5168\u6307\u5357\uff1aiOS\/Android \u5dee\u5f02\u5904\u7406 + \u6d4f\u89c8\u5668\u652f\u6301\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-04T03:16:35+00:00","dateModified":"2026-02-04T03:16:35+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/71777.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/71777.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/71777.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Uniapp + PWA \u95ee\u9898\u6392\u67e5 02\uff0cUniapp PWA \u517c\u5bb9\u6027\u9002\u914d\u5168\u6307\u5357\uff1aiOS\/Android \u5dee\u5f02\u5904\u7406 + \u6d4f\u89c8\u5668\u652f\u6301\u6c47\u603b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/71777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=71777"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/71777\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=71777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=71777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=71777"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=71777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}