Codename One Pro订阅用户:iOS Pro Features中Include Push无法取消勾选求助
Hey there, fellow Codename One Pro user! I’ve dealt with this exact frustrating issue before, so let me share the solutions that got it sorted for me:
Check for Push-related code in your project
Codename One automatically locks the "Include Push" option to checked if it detects any push notification API usage in your code. Do a global search for terms likePushManager,registerForPush, or even unused imports of push-related classes—these can all trigger the forced check. Remove or comment out any push-related code you don’t need, then refresh the project settings page; the option should become editable again.Manually edit the project configuration file
If your code has no push references, head straight to your project’s root directory and open thecodenameone_settings.propertiesfile. Look for the lineios.includePush=trueand change its value tofalse. Save the file, restart your IDE or Codename One settings panel, and the "Include Push" option should now be unchecked and no longer grayed out.Clear your project’s build cache
Stale build cache can sometimes cause the settings page to display incorrect states. Use your IDE’s "Clean Project" feature (usually found under the Build menu in Codename One-supported IDEs) to wipe old artifacts. After cleaning, reopen the project settings and try unchecking the option again.Reach out to Codename One Pro support
If none of the above works, as a Pro subscriber you have access to priority support. Submit a ticket detailing your issue—there might be a minor backend configuration hiccup tied to your subscription that their team can fix quickly.
内容的提问来源于stack exchange,提问作者Manuk

