{"id":27648,"date":"2024-01-08T15:42:06","date_gmt":"2024-01-08T07:42:06","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/?p=27648"},"modified":"2024-01-08T15:42:06","modified_gmt":"2024-01-08T07:42:06","slug":"%e7%bd%91%e7%ab%99%e6%8d%a2%e6%88%90app%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%b9%e6%b3%95%e5%92%8c%e6%ad%a5%e9%aa%a4%e5%91%a2","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/appkaifa\/27648.html","title":{"rendered":"\u7f51\u7ad9\u6362\u6210app\u6709\u54ea\u4e9b\u65b9\u6cd5\u548c\u6b65\u9aa4\u5462"},"content":{"rendered":"<p>\u7f51\u7ad9\u6362\u6210APP\uff1a\u539f\u7406\u4e0e\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n<p>\u968f\u7740\u79fb\u52a8\u4e92\u8054\u7f51\u7684\u8fc5\u731b\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u7528\u6237\u5f00\u59cb\u4f7f\u7528\u624b\u673a\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\uff08APP\uff09\u800c\u4e0d\u662f\u4f20\u7edf\u7684\u7f51\u7ad9\u3002\u800c\u5c06\u7f51\u7ad9\u8f6c\u6362\u4e3aAPP\u7684\u65b9\u6cd5\u4e5f\u6108\u53d1\u53d7\u5230\u5173\u6ce8\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5c06\u7f51\u7ad9\u8f6c\u6362\u4e3aAPP\uff0c\u4ee5\u53ca\u6574\u4e2a\u8fc7\u7a0b\u4e2d\u8fd0\u7528\u5230\u7684\u539f\u7406\u548c\u6280\u672f\u3002<\/p>\n<p>1. \u4e3a\u4ec0\u4e48\u8981\u5c06\u7f51\u7ad9\u8f6c\u6362\u4e3aAPP\uff1f<\/p>\n<p>\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\uff0c\u7528\u6237\u66f4\u503e\u5411\u4e8e\u4f7f\u7528APP\u800c\u975e\u7f51\u7ad9\uff0c\u4e3b\u8981\u539f\u56e0\u5728\u4e8e\uff1a<\/p>\n<p>&#8211; \u66f4\u597d\u7684\u4f7f\u7528\u4f53\u9a8c\uff1a\u76f8\u8f83\u4e8e\u7f51\u9875\uff0cAPP\u4e00\u822c\u63d0\u4f9b\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\uff0c\u80fd\u591f\u66f4\u7b26\u5408\u79fb\u52a8\u8bbe\u5907\u7684\u64cd\u4f5c\u4e60\u60ef\u3002<\/p>\n<p>&#8211; \u4fbf\u6377\u6027\uff1aAPP\u66f4\u65b9<a href=\"https:\/\/appfengzhuang.yimenapp.com\/app-716.html\">\u628a\u7f51\u9875\u5236\u4f5c\u6210app<\/a>\u4fbf\u7528\u6237\u5feb\u901f\u627e\u5230\u548c\u4f7f\u7528\uff0c\u65e0\u9700\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8f93\u5165\u7f51\u5740\u6216\u8005\u67e5\u627e\u4e66\u7b7e\u3002<\/p>\n<p>&#8211; \u79bb\u7ebf\u8bbf\u95ee\uff1aAPP\u53ef\u4ee5\u5728\u79bb\u7ebf\u6761\u4ef6\u4e0b\u4f7f\u7528\uff0c\u90e8\u5206\u529f\u80fd\u548c\u5185\u5bb9\u65e0\u9700\u7f51\u7edc\uff0c\u800c\u7f51\u7ad9\u5219\u9700\u8981\u5b9e\u65f6\u8054\u7f51\u624d\u80fd\u8bbf\u95ee\u3002<\/p>\n<p>&#8211; \u66f4\u591a\u529f\u80fd\uff1aAPP\u53ef\u4ee5\u5145\u5206\u5229\u7528\u8bbe\u5907\u7684<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-04\/07\/10\/09858656105.jpg\" \/><\/figure>\n<\/p>\n<p>API\uff0c\u5b9e\u73b0\u8bf8\u5982\u901a\u77e5\u63a8\u9001\u3001\u5b9a\u4f4d\u7b49\u9ad8\u7ea7\u529f\u80fd\uff0c\u8fd9\u4e9b\u5728\u7f51\u9875\u4e2d\u96be\u4ee5\u5b9e\u73b0\u3002<\/p>\n<p>2. \u7f51\u7ad9\u8f6cAPP\u7684\u4e3b\u8981\u6280\u672f<\/p>\n<p>\u5c06\u7f51\u7ad9\u8f6c\u6362\u4e3aAPP\uff0c\u53ef\u4ee5\u5f52\u7ed3\u4e3a\u4e24\u79cd\u6280\u672f\uff1aWebview\u548cPWA\uff08Progressive Web App\uff09<\/p>\n<p>### 2.1 Webview<\/p>\n<p>\u8fd9\u662f\u4e00\u79cd\u5c06\u7f51\u9875\u5185\u5bb9\u5d4c\u5165\u5230APP\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u5e73\u53f0\u7684Webview\u7ec4\u4ef6\uff08\u5982iOS\u7684UIWebKit\u3001Android\u7684WebView\uff09\uff0c\u6211\u4eec\u5c06\u7f51\u7ad9\u7684HTML\u3001CSS\u3001JavaScript\u7b49\u5185\u5bb9\u5448\u73b0\u5728APP\u4e2d\u3002\u8fd9\u79cd\u6280\u672f\u7684\u4f18\u70b9\u662f\u7b80\u5355\u6613\u7528\uff0c\u751a\u81f3\u53ef\u4ee5\u5229\u7528\u73b0\u6709\u7684\u7f51\u9875\u5f00\u53d1\u6280\u80fd\u548c\u8d44\u6e90\u3002\u7136\u800c\uff0c\u4e5f\u6709\u7f3a\u70b9\uff0c\u5982\u6027\u80fd\u4e0d\u5982\u539f\u751fAPP\u3001\u9488\u5bf9\u8bbe\u5907\u6a2a\u8de8\u6027\u7684\u5f00\u53d1\u6210\u672c\u9ad8\u7b49\u3002<\/p>\n<p>### 2.2 Progressive Web App<a href=\"https:\/\/appfengzhuang.yimenapp.com\/html-feng-zhuang-cheng-app.html\">html\u5c01\u88c5\u6210app<\/a>\uff08PWA\uff09<\/p>\n<p>PWA\u662f\u7531\u8c37\u6b4c\u63a8\u52a8\u7684\u4e00\u79cd\u7f51\u9875\u6280\u672f\u3002\u5176\u57fa\u672c\u7406\u5ff5\u662f\uff1a\u5c06\u7f51\u9875\u4e0e\u8bbe\u5907\u7684API\u7ed3\u5408\uff0c\u8ba9\u7f51\u9875\u5728\u4e0d\u5931\u53bb\u7f51\u9875\u7279\u6027\u7684\u524d\u63d0\u4e0b\uff0c\u5177\u5907\u4e0eAPP\u7c7b\u4f3c\u7684\u529f\u80fd\u548c\u4f53\u9a8c\u3002\u521b\u5efaPWA\u9700\u8981Service Workers\uff08\u670d\u52a1\u5de5\u4f5c\u8005\uff09\u3001Application Shell\uff08\u5e94\u7528\u58f3\uff09\u548cManifest\u6587\u4ef6\u7b49\u6280\u672f\u3002<\/p>\n<p>Service Workers\uff1a\u5b83\u5141\u8bb8\u7f51\u7ad9\u5728\u80cc\u666f\u5b9e\u73b0\u7f13\u5b58\u529f\u80fd\uff0c\u4f7f\u5f97\u5728\u79bb\u7ebf\u72b6\u6001\u4e0b\u4ecd\u7136\u53ef\u4ee5\u8fd0\u884c\u7f51\u7ad9\u3002<\/p>\n<p>Application Shell\uff1aPWA\u4e3a\u6bcf\u4e2a\u9875\u9762\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7684\u7528\u6237\u754c\u9762\u6846\u67b6\uff0c\u8fd9\u4e2a\u6846\u67b6\u5305\u542b\u4e86\u6700\u57fa\u672c\u7684\u5143\u7d20\uff08\u5982\u5bfc\u822a\u680f\uff09\uff0c\u51cf\u5c11\u4e86\u52a0\u8f7d\u65f6\u95f4\uff0c\u63d0\u9ad8\u4e86\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p>Manifest\u6587\u4ef6\uff1aManifest\u6587\u4ef6\u662f\u4e00\u4e2aJSON\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u5e94\u7528\u7684\u57fa\u672c\u4fe1\u606f\uff08\u5982\u540d\u79f0\u3001\u56fe\u6807\u7b49\uff09\uff0c\u65b9\u4fbf\u8bbe\u5907\u4e0a\u5b89\u88c5\u5e76\u751f\u6210\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<p>3. \u5c06\u7f51\u7ad9\u8f6c\u5316\u4e3aAPP\u7684\u5177\u4f53\u6d41\u7a0b<\/p>\n<p>(1) \u8bc4\u4f30\u9700\u6c42\uff1a\u4e86\u89e3\u9700\u8981\u54ea\u4e9b\u529f\u80fd\u548c\u7279\u6027\uff0c\u9009\u62e9\u5408\u9002\u7684\u6280\u672f\u8def\u5f84\u3002<\/p>\n<p>(2) \u51c6\u5907\u5185\u5bb9\uff1a\u6574\u7406\u73b0\u6709\u7f51\u7ad9\u7684\u7ed3\u6784\uff0c\u8c03\u6574\u7f51\u9875\u5e03\u5c40\uff0c\u4f7f\u5176\u9002\u5e94\u79fb\u52a8\u8bbe\u5907\uff0c\u63d0\u9ad8\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n<p>(3)\u5f00\u53d1\u548c\u96c6\u6210\uff1a<\/p>\n<p>\u5bf9\u4e8eWebview\u6280\u672f\uff1a\u5229\u7528\u9002\u5f53\u5de5\u5177\uff0c\u5982Cordova\u3001PhoneGap\u7b49\uff0c\u521b\u5efaAPP\u6846\u67b6\uff0c\u5e76\u5c06\u7f51\u7ad9\u5185\u5bb9\u5d4c\u5165\u5176\u4e2d\u3002<\/p>\n<p>\u5bf9\u4e8ePWA\u6280\u672f\uff1a\u7f16\u5199Service Workers\u3001Application Shell\u5e76\u589e\u52a0Manifest\u6587\u4ef6\uff0c\u5b9e\u73b0APP\u7684\u76f8\u5173\u7279\u6027\u3002<\/p>\n<p>(4) \u8bbe\u5907\u8c03\u8bd5\uff1a\u5728\u771f\u5b9e\u8bbe\u5907\u4e0a\u6d4b\u8bd5APP\u7684\u6027\u80fd\u3001\u529f\u80fd\u4ee5\u53ca\u7528\u6237\u4f53\u9a8c\uff0c\u786e\u4fdd\u5176\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p>(5) \u53d1\u5e03\u4e0a\u67b6\uff1a\u6839\u636e\u5e73\u53f0\u8981\u6c42\uff0c\u51c6\u5907\u76f8\u5173\u6587\u4ef6\uff0c\u5982\u56fe\u6807\u3001\u622a\u56fe\u7b49\uff0c\u9012\u4ea4\u81f3\u5e94\u7528\u5546\u5e97\u8fdb\u884c\u5ba1\u6838\u3002<\/p>\n<p>4. \u603b\u7ed3<\/p>\n<p>\u5c06\u7f51\u7ad9\u6362\u6210APP\u53ef\u4ee5\u5e26\u6765\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u548c\u529f\u80fd\uff0c\u4f46\u4e5f\u9700\u8981\u6295\u5165\u76f8\u5e94\u7684\u7cbe\u529b\u3002\u4e86\u89e3\u539f\u7406\u548c\u6280\u672f\u4e4b\u540e\uff0c\u53ef\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u65b9\u6848\uff0c\u5c06\u7f51\u7ad9\u6210\u529f\u5730\u8f6c\u5316\u4e3a\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u66f4\u4f18\u8d28\u7684\u670d\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u7ad9\u6362\u6210APP\uff1a\u539f\u7406\u4e0e\u8be6\u7ec6\u4ecb\u7ecd\u968f\u7740\u79fb\u52a8\u4e92\u8054\u7f51\u7684\u8fc5\u731b\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u7528\u6237\u5f00\u59cb\u4f7f\u7528\u624b\u673a\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\uff08APP\uff09\u800c\u4e0d\u662f\u4f20\u7edf\u7684\u7f51\u7ad9\u3002\u800c\u5c06\u7f51\u7ad9\u8f6c\u6362\u4e3aAPP\u7684\u65b9\u6cd5\u4e5f\u6108\u53d1\u53d7\u5230\u5173\u6ce8\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5c06\u7f51\u7ad9\u8f6c\u6362\u4e3aAP<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[25599,28650,83,1014,882],"class_list":["post-27648","post","type-post","status-publish","format-standard","hentry","category-appkaifa","tag-ad","tag-h5app","tag-83","tag-1014","tag-882"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/27648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=27648"}],"version-history":[{"count":1,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/27648\/revisions"}],"predecessor-version":[{"id":27674,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/27648\/revisions\/27674"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=27648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=27648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=27648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}