Skip to content

Commit fa67e12

Browse files
Programcodeclaude
andcommitted
Drop the push entitlement from every development build
Prebuild applies expo-notifications' config plugin on its own once the package is installed, and it adds aps-environment like expo-widgets does. The signing profile has no push, so every development build drops it, not only the App Group one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 3baecfc commit fa67e12

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎apps/mobile/app.config.ts‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ function iosLocale(strings: PermissionStrings) {
4141
};
4242
}
4343

44-
// expo-widgets adds the push entitlement even with its push option off, and a
45-
// profile without push cannot sign it.
44+
// expo-widgets adds the push entitlement even with its push option off, and
45+
// prebuild applies expo-notifications' plugin on its own once the package is
46+
// installed, which adds it too. The signing profile has no push, so every
47+
// development build drops it until a profile with push exists.
4648
const withoutPushEntitlement: ConfigPlugin = (config) =>
4749
withEntitlementsPlist(config, (mod) => {
4850
delete mod.modResults['aps-environment'];
@@ -122,9 +124,8 @@ export default ({ projectRoot }: ConfigContext): ExpoConfig => {
122124
widgets: [],
123125
},
124126
]);
125-
// Registered before Expo applies the plugins list. Mods registered later act
126-
// first, so this one runs after expo-widgets has written its entitlements.
127-
return withoutPushEntitlement(config);
128127
}
129-
return config;
128+
// Registered before Expo applies the plugins list. Mods registered later act
129+
// first, so this one runs after the plugins have written their entitlements.
130+
return withoutPushEntitlement(config);
130131
};

0 commit comments

Comments
 (0)