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

Resolve Wireless Permission Issue on CN Devices #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

He-Peter-Huang
Copy link

Per Chinese regulation, apps that runs on devices sold in China Mainland are supposed to prompt for Wireless/Cellular Data Permission before using Local Network or Internet.
iOS is supposed to trigger a prompt for the permission prompt when the devices tries to use networking, but since this app uses SwiftSocket, it doesn't trigger the permission prompt.
The code added makes dummy request to captive.apple.com which triggers the permission prompt to pop up.

Per Chinese regulation, apps that runs on devices sold in China Mainland are supposed to prompt for Wireless/Cellular Data Permission before using Local Network or Internet.
iOS is supposed to trigger a prompt for the permission prompt when the devices tries to use networking, but since this app uses SwiftSocket, it doesn't trigger the permission prompt.
The code added makes dummy request to captive.apple.com which triggers the permission prompt to pop up.
@fabio914
Copy link
Owner

That's interesting, I wasn't aware of this. Is there a way we can ask for this permission without necessarily starting this other connection first?

@He-Peter-Huang
Copy link
Author

He-Peter-Huang commented Sep 1, 2021

That's interesting, I wasn't aware of this. Is there a way we can ask for this permission without necessarily starting this other connection first?

Hi Fabio, there is currently no other way of triggering this permission prompt without making a connection. iOS is supposed to automatically trigger a permission prompt when using anything that’s related to networking, but it seems like by only using SwiftSocket, iOS doesn’t think the app is trying to use networking.

👇This is an example of the permission prompt:
https://imgur.com/a/TASpeVH

PS: This issue have been bugging me for months because I traded in my iPhone 11 Pro (US Version) and got my current iPhone 12 Pro Max (China Mainland Version). Initially I thought it was an issue with my quest 2, but after building the project on XCode and digging through the logs, it occurs to me that the entire app does not have any network connectivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants