أمان نقل التطبيقات
أمان النقل للتطبيقات (ATS)
هي ميزة خصوصية تفرض اتصالات آمنة. ويتم تفعيلها تلقائيًا
للتطبيقات الجديدة.
تظهر رسالة السجلّ التالية عندما يحاول تطبيق غير متوافق مع ATS عرض
إعلان باستخدام HTTP:
منعت ميزة "أمان نقل البيانات في التطبيقات" تحميل موارد HTTP (http://)
الواضحة النص لأنّها غير آمنة. يمكن
ضبط الاستثناءات المؤقتة في ملف Info.plist
الخاص بتطبيقك.
لإيقاف قيود ATS، أضِف الاستثناءات التالية إلىملف
Info.plist
:
NSAllowsArbitraryLoadsForMedia
NSAllowsArbitraryLoadsInWebContent
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsForMedia</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
يجب استخدام المفتاحَين NSAllowsArbitraryLoadsForMedia
وNSAllowsArbitraryLoadsInWebContent
للتأكّد من عدم تأثُّر إعلاناتك بميزة ATS.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-02-08 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-02-08 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]