firebase-unity-sdk icon indicating copy to clipboard operation
firebase-unity-sdk copied to clipboard

[Bug] In iOS 17.0 or above, an SSL error occurs in network requests and a secure connection to the server cannot be established.

Open WikyWu opened this issue 8 months ago • 6 comments

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2022.3.10f1
  • Firebase Unity SDK version: 11.1.0
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: all package
  • Other Firebase Components in use: all
  • Additional SDKs you are using: no
  • Platform you are using the Unity editor on: Mac
  • Platform you are targeting: iOS
  • Scripting Runtime: IL2CPP
  • Pre-built SDK from the website or open-source from this repo: _____

[REQUIRED] Please describe the issue here:

In iOS 17.0 or above, an SSL error occurs in network requests and a secure connection to the server cannot be established. I searched for information and found that on iOS 17, Apple has strengthened its security policy and prohibited the use of this option. On iOS 17, if you try to set "Allow Arbitrary Loads in Web Content" to "YES", you will receive a wrong information. I removed the configuration Allow Arbitrary Loads in Web Content, and network requests were normal.

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? What's the issue repro rate? (eg 100%, 1/5 etc)

What happened? How can we make the problem occur? This could be a description, log/console output, etc.

If you have a downloadable sample project that reproduces the bug you're reporting, you will likely receive a faster response on your issue.

Relevant Code:

// TODO(you): code here to reproduce the problem

WikyWu avatar Nov 15 '23 09:11 WikyWu

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Nov 15 '23 09:11 google-oss-bot

Hi @WikyWu,

Does the issue persist even without the Firebase SDK in your implementation? If not, could you provide a sample code along with the complete steps in reproducing this behavior so we can identify what's causing this to happen?

paulinon avatar Nov 15 '23 13:11 paulinon

Hi @paulinon , My above description is missing one condition, that is, my network request is initiated using AFNetworking. Maybe the "Allow Arbitrary Loads in Web Content" setting will affect the AFNetworking network request? Can you try this over there? Also, iOS17 prohibits the use of the "Allow Arbitrary Loads in Web Content" configuration. Does the Firebase SDK also need to adapt to iOS17?

WikyWu avatar Nov 16 '23 02:11 WikyWu

Hi @paulinon , Has there been any progress on this issue

WikyWu avatar Nov 22 '23 02:11 WikyWu