Mobile games (iOS and Android)¶
Scope: architecture concerns specific to shipping and running games on the App Store and Google Play, whatever the engine: in-app purchases and entitlements, store requirements, children's games and age ratings, install size, integrity checks, stability, live operations, and battery and thermal limits. Engine-independent rules, such as save data, multiplayer and frame budgets, are in Game development, and engine-specific guidance is in Unity, Godot, Unreal Engine and GameMaker. For native Android app architecture, see Android; server-side authorisation rules in Security apply to purchases too. Shipping on Steam and PC is in Steam and PC games. Native app architecture is in iOS (Swift and SwiftUI) and React Native and Expo.
Entries are sorted by score from 1 to 10 (criteria): 9โ10 start here or strongly recommended, 6โ8 recommended, 1โ5 further reading or conditional.
Adopted references¶
- 9 App Review Guidelines (Apple): the baseline for the App Store: in-app purchase (3.1), the Kids Category (1.3), privacy and tracking (5.1), and what an app may download and run (2.5.2 and 4.7).
- 8 Developer Policy Center (Google Play): the baseline for Google Play, with the full policies, such as Payments, Families and Device and Network Abuse.
- 8 Fight fraud and abuse (Play Billing): moving sensitive logic to your backend, verifying and acknowledging purchases there, and handling voided purchases.
- 8 Optimize performance for mobile, XR and web games (Unity e-book): advice from Unity engineers on making mobile, XR and web games run well on a wide range of devices.
- 7 App Store Server API and App Store Server Notifications (Apple): transaction history, subscription status, refunds and real-time purchase events, for your server.
- 7 Android vitals (Android Developers): the stability, battery and memory metrics that affect a game's visibility on Google Play, and their bad-behavior thresholds.
- 7 Play Integrity API (Android Developers): verdicts on app, device and account integrity, and the security considerations for acting on them.
- 7 Play Asset Delivery (Android Developers) and Background Assets (Apple): asset packs that the store downloads at install, right after it, or on demand.
- 7 Optimize thermal and CPU performance with ADPF (Android Developers): the thermal, Game Mode and performance hint APIs for keeping a game's performance sustainable.
- 7 Performance Guidelines for Mobile Devices (Unreal Engine): lighting tiers and content and rendering budgets for mobile devices.
Key rules¶
Purchases and entitlements¶
- 9
MOBGAME-1Verify every purchase on your own server before granting it, and keep entitlements and currency balances there, not on the device. On Google Play, send the purchase token to your backend and check it with the Play Developer API; on the App Store, send the signed transaction to your server and verify it, for example with the App Store Server Library. (Google, Move sensitive logic to your backend, Verify purchases before granting entitlements, Apple, Transaction: verify transactions, Apple, App Store Server Library) - 8
MOBGAME-2Complete a purchase only after granting it: acknowledge or consume Google Play purchases from your backend, and finish App Store transactions after the content is delivered. Never grant a Google Play purchase in thePENDINGstate, and acknowledge within three days, or Google Play refunds it automatically. (Google, Verify purchases before granting entitlements, Apple, Transaction.finish()) - 8
MOBGAME-3Process the stores' server notifications on your backend, Real-time developer notifications from Google Play and App Store Server Notifications V2, to keep subscriptions current and to claw back refunded or voided purchases. Catch up on missed events with the App Store's notification history and Google's Voided Purchases API. (Google, Purchase lifecycle management, Detect and handle voided purchases, Apple, App Store Server Notifications, App Store Server API) - 7
MOBGAME-4Show the odds of each item type before a player buys randomised items such as loot boxes. Both stores require it. On the App Store, in-game currency bought with in-app purchase also may not expire. (Apple, App Review Guidelines 3.1.1, Google Play, Payments policy)
Store requirements¶
- 9
MOBGAME-5Treat each store's build requirements as release blockers with deadlines: Google Play's target API level and Play Billing Library version, and the App Store's minimum Xcode and SDK version. Plan engine and plugin upgrades before each deadline, or you can't ship even a hotfix. For example, since 31 August 2026, new apps and updates on Google Play must target Android 16 (API level 36). (Google, Target API level requirement, Play Billing Library version deprecation, Apple, Upcoming requirements) - 9
MOBGAME-6Declare what the game and every SDK in it collect: keep the App Store privacy details and privacy manifests (IOS-9), and Google Play's Data safety form, accurate, and ask for permission through App Tracking Transparency before tracking players on iOS. The declarations must include the data that ad and analytics SDKs collect. (Apple, App privacy details, Privacy manifest files, Third-party SDK requirements, App Review Guidelines 5.1.2, Google Play, Data safety section) - 8
MOBGAME-7Decide the target audience before choosing ad, analytics and social SDKs, and answer both stores' age-rating questionnaires accurately. If children are part of the audience, follow Google Play's Families policies and the App Store's rules for kids' apps. For children and users of unknown age, Google Play allows only Families Self-Certified Ads SDKs, and Apple allows third-party analytics and advertising in apps primarily for kids only in limited cases. (Google Play, Families policies, Content ratings, Apple, App Review Guidelines 1.3, 5.1.4, 2.3.6) - 8
MOBGAME-8Run live operations, such as events, offers and balance changes, from remote configuration and downloadable data with safe in-app defaults, not from downloaded code. The App Store doesn't allow downloading code that adds or changes features, apart from cases such as HTML5 mini games, and Google Play doesn't allow downloading executable code such as dex or native libraries from outside Google Play. (Apple, App Review Guidelines 2.5.2, 4.7, Google Play, Device and Network Abuse, Firebase Remote Config)
Size, integrity and stability¶
- 8
MOBGAME-9Track user-perceived crash and ANR rates for every release, and keep them under Android vitals' bad-behavior thresholds: 1.09% and 0.47% overall, and 8% on any phone model. Upload native debug symbols, or dSYMs on iOS, with every build, so that crash reports in Play Console and Xcode Organizer are readable. (Android vitals: bad behavior thresholds, Include native symbols in your release build, Apple, Analyzing the performance of your shipping app, Adding identifiable symbol names to a crash report, Godot, Resolving crashes on Android) - 7
MOBGAME-10Keep the first download small: ship what the first session needs in the base app, and deliver the rest as asset packs with Play Asset Delivery and Background Assets. Google Play's base app limit is 200 MB, and install-time asset packs count towards the size shown in the store. (Google, Play Asset Delivery: delivery modes, Apple, Background Assets, Unity, Play Asset Delivery, Unreal Engine, Using Google Play Asset Delivery) - 7
MOBGAME-11Protect ranked play, trading, rewards and other economic features by checking app and device integrity on your server, with the Play Integrity API and App Attest. Request a fresh verdict close to the action, don't cache verdicts, and treat them as one signal in a tiered response rather than the only defence. (Google, Play Integrity security considerations, Apple, Establishing your app's integrity) - 7
MOBGAME-12Release updates gradually, with staged rollouts on Google Play and phased release on the App Store, and halt or pause the rollout when crash or ANR rates rise. (Google Play, Release app updates with staged rollouts, Apple, Release a version update in phases) - 7
MOBGAME-13Cap the frame rate at what the game needs, and lower it and the rendering load when the device heats up, before the system throttles the game. Read the thermal state throughProcessInfoon iOS, the ADPF Thermal API on Android, or an engine layer such as Unity's Adaptive Performance; Apple suggests dropping from 60 to 30 fps when the thermal state is serious. (Apple, ProcessInfo.ThermalState.serious, Google, ADPF, Unity, Application.targetFrameRate, Unity, Adaptive Performance)
How to enforce¶
Tools that check the key rules above automatically, in CI, the IDE or a commit hook. "Partly" means the tool covers only some of what the rule asks.
- 7 App Store Connect upload checks: App Store Connect doesn't accept builds that use required reason APIs without declaring the reason in a privacy manifest, or that are built with an older Xcode and SDK than the current minimum. Uploading every build to TestFlight from CI runs these checks automatically. Partly checks
MOBGAME-5andMOBGAME-6. - 6 Play Console pre-launch report: installs each uploaded build on test devices, crawls it, and reports crashes and stability, performance and accessibility issues before release. Partly checks
MOBGAME-9. - 5 Android Lint target SDK checks:
ExpiredTargetSdkVersionis a fatal check, run on release builds, for a target API level that Google Play no longer accepts, andOldTargetApiwarns when the target isn't the latest API level. Partly checksMOBGAME-5.
Tutorials and further reading¶
- 6 Implementing a store in your app using the StoreKit API (Apple sample code): in-app purchases and entitlements with signed transactions and a sample app server.
- 6 Meet the App Store Server Library (Apple, WWDC23): calling the App Store Server API, verifying signed transactions and server notifications, and migrating away from
verifyReceipt. - 5 Develop Android games (Android Developers): Google's tools, libraries, samples and guidance for developing and delivering games on Android.