Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
WikyWu opened this issue Nov 15, 2023 · 7 comments
Labels
api: core closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question

Comments

@WikyWu
Copy link

WikyWu commented Nov 15, 2023

[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
@google-oss-bot
Copy link

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

@paulinon paulinon added api: core and removed needs-triage new New issue. labels Nov 15, 2023
@paulinon
Copy link
Contributor

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 paulinon added the needs-info Need information for the developer label Nov 15, 2023
@WikyWu
Copy link
Author

WikyWu commented Nov 16, 2023

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?

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Nov 16, 2023
@WikyWu
Copy link
Author

WikyWu commented Nov 22, 2023

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

@argzdev
Copy link

argzdev commented May 14, 2024

Hi @WikyWu, thanks for reaching out. I'm not sure if I understand correctly, but this issue doesn't seem related to Firebase. Isn't this a restriction made by iOS to disable unsecured HTTP traffic? I believe our SDK is already making network calls via HTTPS, and it shouldn't be affected by this. However, if you are encountering this issue, could you provide a minimal reproducible example so that we can investigate this further? Thanks.

@argzdev argzdev added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels May 14, 2024
@google-oss-bot google-oss-bot added the stale Don't have recent activity label May 21, 2024
@google-oss-bot
Copy link

Hey @WikyWu. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@WikyWu if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: core closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question
Projects
None yet
Development

No branches or pull requests

4 participants