OneSignal / onesignal-expo-plugin

The OneSignal Expo plugin allows you to use OneSignal without leaving the managed workflow. Developed in collaboration with SweetGreen.
Other
142 stars 46 forks source link

Custom App Group #184

Closed wandersonalwes closed 9 months ago

wandersonalwes commented 1 year ago

My app was built with a different App Group than the default used. How do I customize this information?

My App Group looks like this: group.com.xxx.onesignal2.

https://github.com/OneSignal/onesignal-expo-plugin/blob/88f0684bf270b7cd1310358f96f93b6cac254682/support/eas/getEasManagedCredentialsConfigExtra.ts#LL23C61-L23C70


Error when trying to build with EAS:

There is a problem with the request entity - An Application Group with Identifier 'group.com.xxx.onesignal' is not available. Please enter a different string.

Remove the value 'group.com.xxx.onesignal' from the array 'com.apple.security.application-groups' in the iOS project entitlements. If you know that the ID is registered to one of your apps, try again with a different Apple account.

rgomezp commented 9 months ago

Wanderson, You could try modifying this plugin.

The withAppGroupPermissions method looks for the default pattern.

That or change the app group your app is using.

Enjoy!