立即在iOS6中运行应用程序,它将不会在iPhone / iPad设备的横向模式下停留。我已经检查了文档和其他相关问题,但找不到答案。我相信我们会关注文档,因此,也许我们的格式有些不正确。这是配置,我仅去除了识别/密钥/哈希信息:

{
    "config_version": "2",
    "name": "appname",
    "author": "author-email",
    "version": "0.1",
    "platform_version": "v1.4.50",
    "description": "description goes here",
    "partners": {
        "parse": {
            "applicationId": "id",
            "clientKey": "clientkeyishere",
            "parseRestKey": "parsekey"
        }
    },
    "modules": {
        "requirements": {
            "ios": {
                "minimum_version": "4.3",
                "device_family": "iphone"
            }
        },
        "icons": {
            "android": {
                "36": "res/icons/android/ldpi.png",
                "48": "res/icons/android/mdpi.png",
                "72": "res/icons/android/hdpi.png",
                "96": "res/icons/android/xhdpi.png"
            },
            "ios": {
                "57": "res/icons/ios/[email protected]",
                "72": "res/icons/ios/[email protected]",
                "114": "res/icons/ios/[email protected]",
                "144": "res/icons/ios/[email protected]",
                "512": "res/icons/ios/icon_512.png"
            }
        },
        "launchimage": {
            "iphone": "res/splash/ios/[email protected]",
            "iphone-retina": "res/splash/ios/[email protected]",
            "iphone-retina4": "res/splash/ios/siren_splash_iphone_tall.png",
            "ipad": "res/splash/ios/[email protected]",
            "ipad-landscape": "res/splash/ios/[email protected]",
            "ipad-retina": "res/splash/ios/[email protected]",
            "ipad-landscape-retina": "res/splash/ios/[email protected]",
            "android": "res/splash/android/android_logo.png",
            "android-landscape": "res/splash/android/android_logo.png",
            "background-color": "#000000"
        },
        "package_names": {
            "ios": "packagenameishere"
        },
        "display": {
            "orientation": {
                "default": "portrait",
                "iphone": "portrait",
                "ipad": "portrait",
                "android": "portrait"
            }
        },
        "geolocation": true,
        "logging": {
            "level": "DEBUG"
        },
        "request": {
            "permissions": [
                "http://*/*",
                "https://*/*"
            ]
        },
        "contact": true,
        "file": true,
        "is": true,
        "media": {},
        "prefs": true,
        "tools": true,
        "reload": true,
        "parameters": {
            "api": "apigoeshere"
        }
    },
    "plugins": {
        "rate": {
            "hash": "hashishere",
            "type": "project"
        }
    }
}

最佳答案

您可能想尝试这种格式,我认为它会不时更改。
这是与Toolkit v2.0.1一起提供的
为我工作。

{
    "modules": {
        "display": {
            "config": {
                "orientations": {
                    "android": "portrait",
                    "ipad": "portrait",
                    "iphone": "portrait"
                }
            },
            "version": "2.2"
         }
    }
}


我的工作配置中的完整示例:

{
"author": "",
"config_version": "4",
"core": {
    "general": {
        "reload": true
    },
    "ios": {
        "device_family": "iphone",
        "minimum_version": "4.3",
        "package_name": ""
    }
},
"description": "",
"homepage": "",
"modules": {
    "contact": {
        "disabled": true,
        "version": "2.2"
    },
    "display": {
        "config": {
            "orientations": {
                "android": "portrait",
                "ipad": "portrait",
                "iphone": "portrait"
            }
        },
        "version": "2.2"
    },
    "file": {
        "version": "2.2"
    },
    "flurry": {
        "config": {
            "ios_api_key": ""
        },
        "version": "2.3",
        "disabled": true
    },
    "geolocation": {
        "version": "2.0"
    },
    "icons": {
        "config": {
            "ios": {
                "57": "assets/graphic/icons/icon-57.png",
                "72": "assets/graphic/icons/icon-72.png",
                "76": "assets/graphic/icons/AppIcon76x76.png",
                "114": "assets/graphic/icons/icon-114.png",
                "120": "assets/graphic/icons/[email protected]",
                "144": "assets/graphic/icons/icon-144.png",
                "152": "assets/graphic/icons/[email protected]",
                "512": "assets/graphic/icons/icon-512.png",
                "prerendered": true
            }
        },
        "version": "2.1"
    },
    "launchimage": {
        "config": {
            "ios": {
                "1536x2048": "assets/graphic/splash/1536x2048-splash.png",
                "320x480": "assets/graphic/splash/320x480-splash.png",
                "640x1136": "assets/graphic/splash/640x1136-splash.png",
                "2048x1536": "assets/graphic/splash/2048x1536-splash.png",
                "1536x2008": "assets/graphic/splash/1536x2008-splash.png",
                "1024x768": "assets/graphic/splash/1024x768-splash.png",
                "2048x1496": "assets/graphic/splash/2048x1496-splash.png",
                "1024x748": "assets/graphic/splash/1024x748-splash.png",
                "640x960": "assets/graphic/splash/640x960-splash.png",
                "768x1004": "assets/graphic/splash/768x1004-splash.png",
                "768x1024": "assets/graphic/splash/768x1024-splash.png"
            }
        },
        "version": "2.1"
    },
    "media": {
        "config": {},
        "disabled": true,
        "version": "2.1"
    },
    "notification": {
        "version": "2.2"
    },
    "parse": {
        "config": {
            "applicationId": "",
            "clientKey": ""
        },
        "version": "2.0"
    },
    "prefs": {
        "version": "2.0"
    },
    "request": {
        "config": {
            "permissions": [
                "http://*/*",
                "https://*/*"
            ]
        },
        "version": "2.3"
    },
    "sms": {
        "version": "2.0"
    },
    "tabbar": {
        "disabled": true,
        "version": "2.1"
    },
    "tabs": {
        "version": "2.4"
    },
    "urlhandler": {
        "config": {
            "scheme": ""
        },
        "version": "2.0"
    },
    "topbar": {
        "version": "2.2"
    }
},
"name": "",
"platform_version": "v2.0.1",
"version": ""
}

关于iphone - 应用程序不会在Trigger.io中停留在人像模式,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19100743/

10-12 05:55