App-Transportsicherheit
App Transport Security (ATS) ist eine Datenschutzfunktion, die sichere Verbindungen erzwingt. Sie ist für neue Apps standardmäßig aktiviert.
Die folgende Protokollmeldung wird angezeigt, wenn eine nicht ATS-konforme App versucht, eine Anzeige über HTTP auszuliefern:
Die App Transport Security hat die Ressourcenlade in Klartext-HTTP (http://) blockiert, da sie unsicher ist. Temporäre Ausnahmen können in der Info.plist
-Datei Ihrer App konfiguriert werden.
Wenn Sie ATS-Einschränkungen deaktivieren möchten, fügen Sie dem Info.plist
Ihrer App die folgenden Ausnahmen hinzu:
NSAllowsArbitraryLoadsForMedia
NSAllowsArbitraryLoadsInWebContent
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsForMedia</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
Die Schlüssel NSAllowsArbitraryLoadsForMedia
und NSAllowsArbitraryLoadsInWebContent
sind erforderlich, damit Ihre Anzeigen nicht von ATS betroffen sind.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-02-08 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-02-08 (UTC)."],[[["App Transport Security (ATS) enforces secure connections and is enabled by default for new apps, blocking cleartext HTTP resource loads for enhanced security."],["To avoid ATS restrictions and ensure ad serving functionality, developers need to include `NSAllowsArbitraryLoadsForMedia` and `NSAllowsArbitraryLoadsInWebContent` exceptions within their app's `Info.plist` file."],["These exceptions allow media and web content to bypass ATS restrictions, preventing disruption to ad delivery."]]],["App Transport Security (ATS) enforces secure connections and is enabled by default. Non-compliant apps using HTTP trigger a log message indicating blocked insecure resource loads. To disable ATS restrictions for media and web content, add `NSAllowsArbitraryLoadsForMedia` and `NSAllowsArbitraryLoadsInWebContent` keys set to `true` within the app's `Info.plist` file, under the `NSAppTransportSecurity` dictionary. These exceptions are essential to prevent ads from being affected by ATS.\n"]]