Say you are a lead engineer at a startup with a hard launch date tied to a £50,000 marketing campaign. You have spent six weeks polishing a React Native 0.76 application, ensuring the UI is fluid and the backend is resilient. On Thursday night, you submit the build for review, expecting a routine approval for a Monday morning rollout.
Instead, at 3:00 AM on Friday, you receive a notification: "Guideline 3.1.1 - Business - Payments - In-App Purchase." The reviewer found a link to your web dashboard where users can manage subscriptions. You also receive a "Guideline 4.8 - Design - Sign in with Apple" rejection because your social login list includes Google but hides Apple behind a "More" menu.
The cost is immediate. You lose the weekend to emergency refactoring. The marketing campaign cannot be paused, meaning thousands of pounds are spent driving users to a "Coming Soon" landing page instead of an app store link. The release is delayed by four days, but the damage to investor confidence and team morale lasts longer.
Why it happens
Tutorials for cross-platform frameworks like React Native or Flutter often treat the App Store as a transparent pipe. They focus on npm install and npx react-native run-ios, but they rarely discuss the static analysis bots and human reviewers that sit between your code and your users.
Rejections happen because of a fundamental mismatch between developer convenience and Apple’s business constraints. Developers want to bypass the 15-30% "Apple Tax" or use Over-The-Air (OTA) updates to fix bugs instantly. Apple wants to ensure every transaction is traceable through their ledger and every app follows a predictable privacy and UI pattern.
The documentation for tools like CodePush or RevenueCat will tell you how to install the SDK. It will not tell you that a reviewer in a different time zone will test your app on an iPad (even if you only target iPhone) using a high-latency IPv6 connection, and they will tap every "Cancel" button in your onboarding flow to see if the app hangs.
The fix, step-by-step
To break the rejection loop, you must move from a "feature-first" mindset to a "reviewer-first" mindset. This involves configuring your app to pass both the automated static analysis and the manual human test.
1. Audit for "Ghost" Permissions
Apple’s automated scanner flags apps that include code for sensitive APIs, even if those APIs are never called. This often happens when you install a "kitchen sink" library.
The Symptom: You receive an email immediately after uploading to App Store Connect stating your app "contains sensitive keys" like NSLocationAlwaysUsageDescription in the Info.plist, but you don't use background location.
The Fix:
Identify which node_module is pulling in the dependency. If you are using react-native-permissions, you must explicitly exclude unused permissions in your Podfile.
# ios/Podfile
target 'YourApp' do
# ...
permissions_directory = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_directory}/Camera"
# Do NOT include Permission-Location if you don't need it.
end
Confirm it worked: Run pod install. Check your Pods/ directory. If you see Permission-Location, the static analysis bot will likely flag it. The binary size should also drop by a few hundred kilobytes.
2. Implement the "Restore Purchases" Logic
If you sell digital goods, Guideline 3.1.1 is non-negotiable. However, the most common technical failure is the "Restore Purchases" button.
The Symptom: The reviewer taps "Restore Purchases" on a fresh device where they haven't bought anything. If your app shows an infinite loading spinner or a generic "Error," it is an automatic rejection.
The Fix:
You must handle the "Empty Restore" state gracefully. Use a library like react-native-iap or RevenueCat.
const restorePurchases = async () => {
try {
const customerInfo = await Purchases.restorePurchases();
if (Object.keys(customerInfo.entitlements.active).length === 0) {
Alert.alert("No Purchases Found", "We couldn't find any active subscriptions for this Apple ID.");
}
} catch (e) {
Alert.alert("Connection Error", "Please check your internet connection and try again.");
}
};
Confirm it worked: Use a Sandbox Tester account in iOS Settings. Sign in, open your app, and tap Restore without buying anything. If you see your custom "No Purchases Found" alert instead of a crash or a hang, you have passed this check.
3. Enforce Sign in with Apple Parity
Guideline 4.8 states that if you use any third-party social login (Google, Facebook, etc.), you must offer Sign in with Apple as an equivalent option.
The Symptom: Rejection because the Apple button is smaller, at the bottom of the list, or requires an extra tap to reveal.
The Fix:
The Apple button must be at least as prominent as other social buttons. In React Native, use the official @invertase/react-native-apple-authentication.
Confirm it worked: Ensure the button uses the standard Apple-provided styling. Reviewers look for the "Continue with Apple" or "Sign in with Apple" text. If you use a custom icon that doesn't match their branding guidelines, they will reject it.
4. The IPv6 Connectivity Test
Reviewers test on an IPv6-only network. Many developer backends are still configured for IPv4 only, or use hardcoded IP addresses.
The Symptom: The reviewer reports that the app "hangs on a white screen" or "cannot connect to the server," but it works perfectly on your local machine and your staging server.
The Fix:
- Never use hardcoded IP addresses (e.g.,
192.168.1.1). Use DNS names. - Ensure your CDN and Load Balancer (AWS ALB, Cloudflare) have IPv6 (AAAA records) enabled.
- Test locally by creating an IPv6 NAT64 network using a Mac. Go to System Settings > Sharing > Internet Sharing. Hold the
Optionkey and select "Create NAT64 Network."
Confirm it worked: Connect your test iPhone to this Mac-hosted Wi-Fi. If your app can fetch data from your API under these conditions, it will pass the reviewer's network check.
What it costs, and when not to do it
Following these rules strictly has a development cost. Implementing Apple-compliant IAP can take 2-3 times longer than integrating a simple Stripe checkout. For a B2B app where users are invited by an admin, you should skip IAP entirely and use Guideline 3.1.3(c), which allows "enterprise" apps to bypass IAP.
The trade-off of using OTA updates (like Expo Updates or CodePush) is the "Guideline 2.5.2" risk. You can push bug fixes, but if you push a new feature that changes the app's category (e.g., adding a gambling game to a weather app), Apple can and will ban your developer account.
The Cost of Compliance:
- Time: Expect to add 20% to your initial launch estimate for "App Store hardening."
- Revenue: Apple takes a 15% cut (for small businesses under $1M) or 30%. If your margins are thin, you must price your in-app items higher than on the web.
- Complexity: You now have to manage three sources of truth for user state: your database, the App Store receipt, and the local device cache.
Do not implement these fixes if you are building a Progressive Web App (PWA) or an internal-only "In-House" enterprise app. Those bypass the App Store review process entirely.
At your level
Starting out
Focus on the Info.plist. Most of your early rejections will be due to missing "Usage Description" strings. If you ask for the camera, you must explain why in a way that makes sense to a non-technical user. "This app requires camera access" is a rejection; "This app uses the camera to scan QR codes for event check-in" is an approval.
Working engineer
Own the IAP state machine. Do not rely on the frontend to tell the backend a purchase was successful. Always implement server-to-server (S2S) notifications. When a user buys a subscription, Apple sends a webhook to your server. This is the only way to handle subscription cancellations or billing issues reliably.
Senior or staff
Architecture for "Reviewer Modes." Build a server-side flag that can hide "coming soon" or "grey area" features from reviewers. If you are launching a feature that pushes the boundaries of Guideline 4.7 (HTML5 games/mini-apps), ensure you have a "kill switch" to disable it if the reviewer objects, allowing the rest of the
Amit Chakraborty is a founding engineer and senior architect — React Native, AI/RAG systems and production architecture. Portfolio: www.amitchakraborty.dev · LinkedIn · GitHub. Open to senior and founding engineering roles, remote worldwide.
Top comments (0)