Skip to content

App Store Submission

PAM Native gives you store-ready artifacts: an Android App Bundle for Google Play and a signed .ipa for App Store Connect. Everything a store reviews inside the binary (identity, version, icon, permissions, purpose strings, deep links) is declared in pam-native.json and by the plugins you install, so you can check it before you upload.

The upload itself, the store listing, screenshots, privacy questionnaires, and review are the standard Google Play and App Store processes. PAM does not upload to stores or hold store credentials. This page shows what to prepare in your project and points out where the store process takes over.

Work through these in pam-native.json, then build with Building and Signing.

pam-native.json
{
"name": "Acme",
"applicationId": "com.example.acme",
"versionCode": 12,
"versionName": "1.4.0",
"ios": {
"bundleIdentifier": "com.example.acme"
}
}
  • applicationId is the Android package name and, by default, the iOS bundle identifier. It cannot change after the first store release.
  • ios.bundleIdentifier is only needed when the iOS app already exists under a different identifier.
  • name is the label under the icon (1 to 80 characters). For iOS, the Xcode product name is an ASCII form of it, so accented names still pass App Store Connect validation.
  • versionCode must increase for every upload to either store.

Without an icon declaration the hosts keep the bundled PAM icon. Declare your own before any public release:

pam-native.json
{
"android": {
"icon": {
"foreground": "assets/icon/android-foreground.png",
"background": "#0F172A",
"monochrome": "assets/icon/android-monochrome.png"
}
},
"ios": {
"icon": "assets/icon/ios-1024.png"
}
}

android.icon is an adaptive icon:

Field Purpose
foreground PNG or WebP on the 108 dp adaptive canvas. Keep the artwork inside the central 66 dp; 432 px or larger stays sharp.
background #RGB or #RRGGBB color, or a PNG/WebP layer. Defaults to white.
monochrome Optional single-color layer for Android 13+ themed icons.

Android 12+ also draws the launcher icon on the system splash screen unless appearance.splash sets its own logo.

The Play Console and App Store Connect also ask for a separate 512×512 (Play) and 1024×1024 (App Store) listing icon; upload those in the store.

appearance in pam-native.json sets the window and splash colors for light and dark mode and an optional splash logo, so the app never flashes a wrong color before the first PHP frame. See Theming.

Lock orientations if your layouts do not support rotation:

pam-native.json
{
"android": { "orientations": ["portrait"] },
"ios": { "orientations": ["portrait"] }
}

Values are portrait, portraitUpsideDown, landscapeLeft, and landscapeRight. With targetSdk 36, Android 16 ignores the lock on large screens (smallest width 600 dp or more), so tablet and foldable layouts must still handle rotation and keep content out of the safe-area insets. See Safe areas.

Stores reject apps that request access they do not use or explain it poorly. Declare only what your shipped features need:

pam-native.json
{
"android": {
"permissions": [
"android.permission.CAMERA"
]
},
"ios": {
"usageDescriptions": {
"NSCameraUsageDescription": "Acme uses the camera to scan receipts you choose to add."
}
}
}
  • Android permissions use their full android.permission.* names. Plugins add their own; pam audit lists every one, with its source.
  • iOS purpose strings (NS…UsageDescription) explain each protected resource. Plugins provide defaults, and the values in your ios.usageDescriptions win, so you own the wording users see. Write a specific, user-facing sentence; generic text is a common rejection reason.
  • Request runtime access at the moment the user starts the feature, not at launch. See Permissions.

Run the audit and review every high or critical finding:

Terminal window
pam audit --deny-high

Set the language of your app’s own texts and the languages you support, so system UI (pickers, share sheets, alert buttons) matches:

pam-native.json
{
"ios": {
"developmentRegion": "en",
"localizations": ["en", "pt-BR", "es"]
}
}

Install the packaged universal APK (dist/acme-1.4.0-android.apk) on a physical Android device, and distribute the .ipa through TestFlight before release. Check startup, sign-in, the longest lists, backgrounding and returning, rotation, and every permission prompt. Confirm that no content is hidden by the status bar, notch, home indicator, or navigation bar.

PAM produces dist/<name>-<version>-android.aab with pam package. The steps below are the standard Google Play process.

  1. Create the app in the Play Console with the same package name as your applicationId.
  2. Enroll in Play App Signing. Google holds the app signing key and your PAM_ANDROID_KEYSTORE becomes the upload key.
  3. Upload the .aab to the internal testing track first, then promote it through closed or open testing to production.
  4. Complete the policy forms: Data safety (what the app and its plugins collect and share), content rating, target audience, and any sensitive-permission declarations the Console asks for (for example location in the background).
  5. Use a staged rollout for production and watch crashes and ANRs in Android vitals before you go to 100 %.

dist/android-release.json contains the application ID, version code, and artifact names, so CI upload tools can read them instead of parsing file names.

PAM produces dist/<name>-<version>-ios.ipa with pam ios:package on macOS. The steps below are the standard App Store Connect process.

  1. Register the bundle identifier in your Apple Developer account and create the app in App Store Connect with it.
  2. Upload the .ipa with Apple’s Transporter app, Xcode’s Organizer, or your CI’s App Store Connect integration.
  3. Test with TestFlight, internally first, then with external testers (external builds go through a short beta review).
  4. Complete the privacy details (“App Privacy”) for the data your app and its plugins collect, and the export-compliance questions.
  5. Submit for review, optionally with a phased release.
  • Keep the dist/ artifacts, checksums, and android-release.json of every release; they identify exactly what you shipped.
  • PHP-only fixes can reach users faster with signed over-the-air updates. Anything that changes native code, plugins, permissions, entitlements, or purpose strings still needs a new store release.