microsoft / code-push

A cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.
https://microsoft.github.io/code-push/
Other
4.34k stars 484 forks source link

App Store Rejected - Guideline 2.3.1 - Performance #841

Closed dudu-hinet closed 3 months ago

dudu-hinet commented 3 months ago

I submitted to App Store Connect and was rejected with:

Guideline 2.3.1 - Performance

The app contains hidden features.

Next Steps

  • Learn more about accurate metadata requirements in guideline 2.3.1.
  • Revise the app to follow these requirements.
  • Once the app is fully compliant, resubmit the app for review.

package.json: "react": "18.1.0", "react-native": "0.70.5", "react-native-code-push": "7.1.0",

CodePush.js:

import CodePush, { DownloadProgress, LocalPackage, RemotePackage } from "react-native-code-push";
CodePush.allowRestart();
export const upgrade = () => {
    CodePush.sync({
        deploymentKey: "CodePushKey",
        installMode: CodePush.InstallMode.IMMEDIATE
    }, (status: CodePush.SyncStatus) => {
        ...
    }, (progress: DownloadProgress) => {
        ...
    }, (update: RemotePackage) => {
        ...
    }
}

The binary does not go to upgrade actually since it is the latest version. I removed all CodePush package and re-submit again, and it is passed. I wonder that Apple does not accept CodePush at all without giving any clue.

dudu-hinet commented 3 months ago

move to https://github.com/microsoft/react-native-code-push/issues/2680