{"id":4032,"date":"2015-12-18T09:57:45","date_gmt":"2015-12-18T00:57:45","guid":{"rendered":"http:\/\/www.lancard.com\/blog\/?p=4032"},"modified":"2025-03-12T11:27:31","modified_gmt":"2025-03-12T02:27:31","slug":"cordova-platform-specific-orientation","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2015\/12\/18\/cordova-platform-specific-orientation\/","title":{"rendered":"cordova \u3067\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u56fa\u6709\u306e orientation \u3092\u6307\u5b9a\u3059\u308b"},"content":{"rendered":"<p>\u6700\u8fd1\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30a2\u30d7\u30ea\u3092\u691c\u8a0e\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u3001cordova \u7531\u6765\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3001PhoneGap \u3084 ionic \u7b49\u3092\u89e6\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001\u3053\u308c\u3089\u306e\u30a2\u30d7\u30ea\u3082\u57fa\u672c\u7684\u306b\u306f Web \u306e\u6280\u8853\u3067\u5b9f\u88c5\u3059\u308b\u3068\u306f\u3044\u3048\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3068\u306e\u5354\u8abf\u3092\u8a2d\u5b9a\u3059\u308b\u90e8\u5206\u306f\u3042\u308a\u3001\u305d\u308c\u3089\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8\u306b\u3042\u308b config.xml \u3067\u3059\u3002<\/p>\n<p>\u3088\u304f\u8a2d\u5b9a\u304c\u5fc5\u8981\u3068\u306a\u308b\u9805\u76ee\u306b\u753b\u9762\u56de\u8ee2\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u30a2\u30d7\u30ea\u306e\u8981\u4ef6\u3067\u7e26\u56fa\u5b9a\u3068\u306a\u308b\u3053\u3068\u306f\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u30b2\u30fc\u30e0\u3067\u3042\u308c\u3070\u6a2a\u56fa\u5b9a\u3068\u306a\u308b\u3053\u3068\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002config.xml \u3067\u306f\u4ee5\u4e0b\u306e\u9805\u76ee\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre lang='xml'>\n    <preference name=\"orientation\" value=\"landscape\" \/>\n<\/pre>\n<p>\u3053\u306e orientation \u306b\u306f\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u56fa\u6709\u306e\u5024\u3092\u6301\u305f\u305b\u308b\u3053\u3068\u304c\u51fa\u6765\u3001Android \u3067\u3042\u308c\u3070\u4e00\u4f8b\u3068\u3057\u3066 <code>sensorLandscape<\/code> \u3068\u3044\u3046\u5024\u304c\u3042\u308a\u307e\u3059\u3002<code>sensorLandscape<\/code> \u306f\u6a2a\u56fa\u5b9a\u3060\u304c\u4e0a\u4e0b\u306f\u30bb\u30f3\u30b5\u30fc\u306b\u5f93\u3046\u3068\u3044\u3046\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3092<a href=\"https:\/\/cordova.apache.org\/docs\/en\/latest\/config_ref\/index.html\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u30b3\u30fc\u30c9\u3092\u53c2\u8003\u306b\u8ffd\u8a18\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre lang='xml'>\n    <preference name=\"orientation\" value=\"landscape\" \/>\n    <platform name=\"android\">\n        <preference name=\"Orientation\" value=\"sensorLandscape\" \/>\n    <\/platform>\n<\/pre>\n<p>\u3053\u308c\u3067\u753b\u9762\u6a2a\u5411\u304d\u3001Android \u306b\u304a\u3044\u3066\u306f sensorLandscape \u304c\u9069\u7528\u3055\u308c\u2026\u308b\u304b\u3068\u601d\u3044\u304d\u3084\u3001\u3069\u3046\u3082\u305d\u3046\u3067\u306f\u7121\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\n\u5c11\u306a\u304f\u3068\u3082\u4eca\u8a66\u3057\u3066\u3044\u308b cordova (v5.4.1) \u3067\u306f\u901a\u5e38\u306e preference \u304c\u3042\u308b\u3068\u305d\u3061\u3089\u304c\u512a\u5148\u3055\u308c\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u56fa\u6709\u306e\u30b3\u30fc\u30c9\u3092\u9069\u7528\u3055\u305b\u305f\u3044\u5834\u5408\u306f\u5171\u901a\u306e\u8a2d\u5b9a\u306f\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre lang='xml'>\n    <platform name=\"android\">\n        <preference name=\"Orientation\" value=\"sensorLandscape\" \/>\n    <\/platform>\n<\/pre>\n<p>\u4e0a\u8a18\u3067\u30d3\u30eb\u30c9\u304c\u901a\u308a\u3001orientation \u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u4ed6\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3082\u30d3\u30eb\u30c9\u306f\u53ef\u80fd\u3067\u3001\u305d\u306e\u5834\u5408\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u6307\u5b9a\u304c\u7121\u3051\u308c\u3070 default \u6307\u5b9a\u304c\u9069\u7528\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/apache\/cordova-lib\/blob\/master\/cordova-lib\/src\/cordova\/metadata\/parserhelper\/preferences.js\">\u8a72\u5f53\u7b87\u6240\u3063\u307d\u3044\u30b3\u30fc\u30c9<\/a>\u3092\u898b\u308b\u3068\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u56fa\u6709\u306e\u6307\u5b9a\u304c\u3042\u308b\u5834\u5408\u306f\u305d\u3061\u3089\u3092\u512a\u5148\u3055\u305b\u3066\u304f\u308c\u308b\u3088\u3046\u306a\u5b9f\u88c5\u306b\u898b\u3066\u3068\u308c\u307e\u3059\u3002\u6050\u3089\u304f\u610f\u56f3\u3057\u306a\u3044\u6319\u52d5\u3060\u3068\u306f\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u8efd\u3044\u6c17\u6301\u3061\u3067 issue \u3067\u3082\u6295\u3052\u306b\u884c\u304f\u304b\u301c\u3068\u8997\u304d\u306b\u884c\u304f\u3068 JIRA \u3067\u30ad\u30c3\u30c1\u30ea\u3084\u3063\u3066\u3044\u308b\u69d8\u5b50\u3067\u601d\u308f\u305a\u8eab\u304c\u7ae6\u3093\u3067\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3044\u3044\u611f\u3058\u306b\u76f4\u3063\u3066\u304f\u308c\u308b\u3068\u3044\u3044\u3093\u3067\u3059\u304c\u2026\u3002<\/p>\n<hr \/>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4032&#038;t=cordova%20%E3%81%A7%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E5%9B%BA%E6%9C%89%E3%81%AE%20orientation%20%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4032&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=cordova%20%E3%81%A7%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E5%9B%BA%E6%9C%89%E3%81%AE%20orientation%20%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4032&#038;text=cordova%20%E3%81%A7%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E5%9B%BA%E6%9C%89%E3%81%AE%20orientation%20%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4032&#038;title=cordova%20%E3%81%A7%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E5%9B%BA%E6%9C%89%E3%81%AE%20orientation%20%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&#038;v=3&#038;t=cordova%20%E3%81%A7%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E5%9B%BA%E6%9C%89%E3%81%AE%20orientation%20%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B&#038;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4032\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=cordova%20%E3%81%A7%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E5%9B%BA%E6%9C%89%E3%81%AE%20orientation%20%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B&#038;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4032\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30a2\u30d7\u30ea\u3092\u691c\u8a0e\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u3001cordova \u7531\u6765\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3001PhoneGap \u3084 ionic \u7b49\u3092\u89e6\u3063\u3066\u3044\u307e\u3059\u3002 \u3055\u3066\u3001\u3053\u308c\u3089\u306e\u30a2\u30d7\u30ea\u3082\u57fa\u672c\u7684\u306b\u306f Web \u306e\u6280\u8853\u3067\u5b9f\u88c5\u3059\u308b\u3068\u306f\u3044\u3048\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3068\u306e [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93,124,36],"tags":[],"class_list":["post-4032","post","type-post","status-publish","format-standard","hentry","category-android","category-ios","category-web"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=4032"}],"version-history":[{"count":9,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4032\/revisions"}],"predecessor-version":[{"id":4048,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4032\/revisions\/4048"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=4032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=4032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=4032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}