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

Disable CallKit for China on iOS #805

Open
m15r opened this issue Aug 20, 2024 · 1 comment
Open

Disable CallKit for China on iOS #805

m15r opened this issue Aug 20, 2024 · 1 comment

Comments

@m15r
Copy link

m15r commented Aug 20, 2024

Apple does not allow distribution to the App Store in China with CallKit features enabled.

There's a solution discussed here, using NSLocale to check the user's region and conditionally initialize Callkit: https://stackoverflow.com/questions/51016603/disabling-callkit-from-china-store-best-approach

The CallKeep equivalent I'm using:

  NSString *currentRegion = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
  if (![currentRegion isEqualToString:@"CN"]) {
    // Disable CallKit in China
    [RNVoipPushNotificationManager voipRegistration];
    [RNCallKeep setup:@{
      @"appName": @"Call App",
      @"maximumCallGroups": @1,
      @"maximumCallsPerCallGroup": @1,
      @"supportsVideo": @YES,
    }];
  }

However, Apple continues to reject my app, leading me to believe CallKeep continues to use CallKit features internally without setup.

How would I go by disabling CallKit completely? Could the locale check by any chance be implemented in CallKeep?

@fukemy
Copy link

fukemy commented Oct 24, 2024

just disable distribution in China from app store

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

No branches or pull requests

2 participants