Skip to content

Conversation

@arnaud-roland
Copy link
Contributor

  • Introduced androidSmallIconResourceId and androidNotificationsColor configuration options for enhanced notification customization.
  • Fixed an issue where expo prebuild would fail if the Batch API key was not configured.

@arnaud-roland
Copy link
Contributor Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +16 to +19
if (props.iosApiKey) {
infoPlist.BatchAPIKey = props.iosApiKey;
} else {
console.error("⚠️ [Batch] `iosApiKey` cannot be null or undefined.");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid leaving stale iOS API key when config is removed

The new guard only writes BatchAPIKey when iosApiKey is truthy and otherwise just logs. If a project already contains an Info.plist with a previous Batch key and a developer later removes the key from app.json and reruns expo prebuild against the existing iOS directory, this branch now leaves the old BatchAPIKey untouched, so the app still uses the stale credential even though it has been removed from the config. Prior code overwrote the value (even with empty/undefined), so the configuration no longer stays in sync.

Useful? React with 👍 / 👎.

Comment on lines +13 to +17
if (props.androidApiKey) {
AndroidConfig.Strings.setStringItem(
[
{
$: {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Android API key not cleared when missing from config

Similarly, the strings.xml update now runs only when androidApiKey is truthy; if the key is removed from app.json but an existing Android project already has BATCH_API_KEY from a prior build, rerunning prebuild will skip setStringItem and leave the old key in place. That makes it impossible to clear or change the Batch API key through configuration alone, causing the native project to continue using stale credentials.

Useful? React with 👍 / 👎.

@arnaud-roland arnaud-roland merged commit 859723e into master Nov 24, 2025
1 check passed
@arnaud-roland arnaud-roland deleted the feature/custom-small-icon-configuration branch November 24, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants