Skip to content

Instantly share code, notes, and snippets.

@KentarouKanno
Last active August 28, 2016 22:30
Show Gist options
  • Save KentarouKanno/691a95a1aee47c085b163b03b2c5af96 to your computer and use it in GitHub Desktop.
Save KentarouKanno/691a95a1aee47c085b163b03b2c5af96 to your computer and use it in GitHub Desktop.
Info.plist

Info.plist

★ URL Schemeの設定

<key>CFBundleURLTypes</key>
<array>
	<dict>
		<key>CFBundleURLSchemes</key>
		<array>
			<string>AppURLScheme</string>
		</array>
		<key>CFBundleURLName</key>
		<string>me.kentarou</string>
	</dict>
</array>

★ ATSを無効にする

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

★ ドメインを指定してATSを無効にする

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>xxx.co.jp</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSTemporaryExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
    </dict>
</dict>

★ iOSアプリがバックグラウンドにいったときにリセットされて次回また新規に起動されるようにする ※ バックグラウンドからの復帰時にdidFinishLaunchingWithOptions、applicationDidBecomeActiveが呼ばれないで画面だけ戻る

<key>UIApplicationExitsOnSuspend</key>
<true/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment