{"id":32787,"date":"2024-11-25T09:01:55","date_gmt":"2024-11-25T01:01:55","guid":{"rendered":"https:\/\/fwq.ai\/blog\/32787\/"},"modified":"2024-11-25T09:01:55","modified_gmt":"2024-11-25T01:01:55","slug":"%e5%b0%8f%e7%a8%8b%e5%ba%8f%e6%94%af%e6%8c%81%e8%b7%b3%e8%bd%acapp%e4%b9%88","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/32787\/","title":{"rendered":"\u5c0f\u7a0b\u5e8f\u652f\u6301\u8df3\u8f6capp\u4e48"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/039\/5e75a63665824292.jpg\" class=\"aligncenter\" title=\"\u5c0f\u7a0b\u5e8f\u652f\u6301\u8df3\u8f6capp\u4e48\u63d2\u56fe\" alt=\"\u5c0f\u7a0b\u5e8f\u652f\u6301\u8df3\u8f6capp\u4e48\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5c0f\u7a0b\u5e8f\u652f\u6301\u8df3\u8f6capp\u3002<\/strong><\/p>\n<p>\u6b64\u529f\u80fd\u9700\u8981\u7528\u6237\u4e3b\u52a8\u89e6\u53d1\u624d\u80fd\u6253\u5f00 APP\uff0c\u6240\u4ee5\u4e0d\u7531 API \u6765\u8c03\u7528\uff0c\u9700\u8981\u7528&nbsp;open-type&nbsp;\u7684\u503c\u8bbe\u7f6e\u4e3a&nbsp;launchApp&nbsp;\u7684&nbsp;button&nbsp;\u7ec4\u4ef6\u7684\u70b9\u51fb\u6765\u89e6\u53d1\u3002<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p style=\"margin: 2em 0px 0.5em;padding: 0px;font-size: 16px;font-family: -apple-system, BlinkMacSystemFont,\">\u5c0f\u7a0b\u5e8f\u7aef<\/p>\n<p>\u9700\u8981\u5c06&nbsp;button&nbsp;\u7ec4\u4ef6&nbsp;open-type&nbsp;\u7684\u503c\u8bbe\u7f6e\u4e3a&nbsp;launchApp\u3002\u5982\u679c\u9700\u8981\u5728\u6253\u5f00 APP \u65f6\u5411 APP \u4f20\u9012\u53c2\u6570\uff0c\u53ef\u4ee5\u8bbe\u7f6e&nbsp;app-parameter&nbsp;\u4e3a\u8981\u4f20\u9012\u7684\u53c2\u6570\u3002\u901a\u8fc7&nbsp;binderror&nbsp;\u53ef\u4ee5\u76d1\u542c\u6253\u5f00 APP \u7684\u9519\u8bef\u4e8b\u4ef6\u3002<\/p>\n<p style=\"margin: 2em 0px 0.5em;padding: 0px;font-size: 16px;font-family: -apple-system, BlinkMacSystemFont,\">app \u7aef<\/p>\n<p>APP \u9700\u8981\u63a5\u5165 OpenSDK\u3002 \u6587\u6863\u8bf7\u53c2\u8003&nbsp;iOS&nbsp;\/&nbsp;Android<\/p>\n<p>Android \u7b2c\u4e09\u65b9 app \u9700\u8981\u5904\u7406&nbsp;ShowMessageFromWX.req&nbsp;\u7684\u5fae\u4fe1\u56de\u8c03\uff0ciOS \u5219\u9700\u8981\u5c06 appId \u6dfb\u52a0\u5230\u7b2c\u4e09\u65b9 app \u5de5\u7a0b\u6240\u5c5e\u7684 plist \u6587\u4ef6 URL types \u5b57\u6bb5\u3002&nbsp;app-parameter&nbsp;\u7684\u83b7\u53d6\u65b9\u6cd5\uff0c\u8bf7\u53c2\u8003&nbsp;Android SDKSample&nbsp;\u4e2d WXEntryActivity \u4e2d\u7684 onResp \u65b9\u6cd5\u4ee5\u53ca&nbsp;iOS SDKSample&nbsp;\u4e2d WXApiDelegate \u4e2d\u7684 onResp \u65b9\u6cd5\u3002<\/p>\n<p style=\"margin: 2em 0px 0.5em;padding: 0px;font-size: 16px;font-family: -apple-system, BlinkMacSystemFont,\">\u4ee3\u7801\u793a\u4f8b<\/p>\n<pre>&lt;button&gt;\u6253\u5f00APP&lt;\/button&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    <\/p>\n<pre>Page({\n&nbsp;&nbsp;launchAppError&nbsp;(e)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;console.log(e.detail.errMsg)\n&nbsp;&nbsp;}\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5c0f\u7a0b\u5e8f\u652f\u6301\u8df3\u8f6capp\u4e48\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u7a0b\u5e8f\u652f\u6301\u8df3\u8f6capp\u3002 \u6b64\u529f\u80fd\u9700\u8981\u7528\u6237\u4e3b\u52a8\u89e6\u53d1\u624d\u80fd\u6253\u5f00 APP\uff0c\u6240\u4ee5\u4e0d\u7531 API \u6765\u8c03\u7528\uff0c\u9700\u8981\u7528&nbsp;open-type&nbsp;\u7684\u503c\u8bbe\u7f6e\u4e3a&nbsp;launchApp&nbsp;\u7684&nbsp;button&nbsp;\u7ec4\u4ef6\u7684\u70b9\u51fb\u6765\u89e6\u53d1\u3002 \u793a\u4f8b\uff1a \u5c0f\u7a0b\u5e8f\u7aef \u9700\u8981\u5c06&nbsp;button&nbsp;\u7ec4\u4ef6&nbsp;open-type&nbsp;\u7684\u503c\u8bbe\u7f6e\u4e3a&nbsp;launchApp\u3002\u5982\u679c\u9700\u8981\u5728\u6253\u5f00 APP \u65f6\u5411 APP \u4f20\u9012\u53c2\u6570\uff0c\u53ef\u4ee5\u8bbe\u7f6e&nbsp;app-parameter&nbsp;\u4e3a\u8981\u4f20\u9012\u7684\u53c2\u6570\u3002\u901a\u8fc7&nbsp;binderror&nbsp;\u53ef\u4ee5\u76d1\u542c\u6253\u5f00 APP \u7684\u9519\u8bef\u4e8b\u4ef6\u3002 app \u7aef APP \u9700\u8981\u63a5\u5165 OpenSDK\u3002 \u6587\u6863\u8bf7\u53c2\u8003&nbsp;iOS&nbsp;\/&nbsp;Android Android \u7b2c\u4e09\u65b9 app \u9700\u8981\u5904\u7406&nbsp;ShowMessageFromWX.req&nbsp;\u7684\u5fae\u4fe1\u56de\u8c03\uff0ciOS \u5219\u9700\u8981\u5c06 appId \u6dfb\u52a0\u5230\u7b2c\u4e09\u65b9 app \u5de5\u7a0b\u6240\u5c5e\u7684 plist \u6587\u4ef6 URL types \u5b57\u6bb5\u3002&nbsp;app-parameter&nbsp;\u7684\u83b7\u53d6\u65b9\u6cd5\uff0c\u8bf7\u53c2\u8003&nbsp;Android SDKSample&nbsp;\u4e2d WXEntryActivity \u4e2d\u7684 onResp \u65b9\u6cd5\u4ee5\u53ca&nbsp;iOS SDKSample&nbsp;\u4e2d WXApiDelegate \u4e2d\u7684 onResp \u65b9\u6cd5\u3002 \u4ee3\u7801\u793a\u4f8b &lt;button&gt;\u6253\u5f00APP&lt;\/button&gt; \u767b\u5f55\u540e\u590d\u5236 Page({ &nbsp;&nbsp;launchAppError&nbsp;(e)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;console.log(e.detail.errMsg) &nbsp;&nbsp;} }) \u767b\u5f55\u540e\u590d\u5236 \u4ee5\u4e0a\u5c31\u662f\u5c0f\u7a0b\u5e8f\u652f\u6301\u8df3\u8f6capp\u4e48\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-32787","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=32787"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32787\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=32787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=32787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=32787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}