2013-09-30 2 views
0

Запуск приложения в iOS6 прямо сейчас, и он не останется в ландшафтном режиме для устройств iPhone/iPad. Я проверил документы и другие вопросы, но не могу найти ответ. Я считаю, что мы следим за документами, так что, возможно, у нас есть неправильное форматирование. Вот конфиг, который я только раздели идентификации/ключа информации/хэш:Приложение не будет находиться в режиме Portrait в Trigger.io

{ 
    "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" 
     } 
    } 
} 

ответ

1

Вы можете попробовать это форматирование, я думаю, что это меняет время от времени. Это с 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": "" 
} 
Смежные вопросы