-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple schemes/flavours - Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier #696
Comments
any luck? 😄 |
any solution?? |
I'm not good at English, so please overlook any awkward sentences. Following the setup guide at https://documentation.onesignal.com/docs/flutter-sdk-setup, proceed with configuring the Add App Groups option using the Optional method. In the Info.plist of OneSignalNotificationServiceExtension, I want to add the following:
However, since appIdSuffix is provided through dart-defines, the following steps are necessary: Create a config file to use environment variables defined with dart-defines![]() Debug.xcconfig
Release.xcconfig
Including "../Flutter/Generated.xcconfig" makes variables defined with dart-defines available! Modify to load the created config file![]() Change the Configuration File in OneSignalNotificationServiceExtension to load the Debug.xcconfig and Release.xcconfig created. Specify the Bundle Identifier of OneSignalNotificationServiceExtensionTARGETS -> OneSignalNotificationServiceExtension -> Build Settings Add OneSignal_app_groups_key to Info.plist of OneSignalNotificationServiceExtension
It seems to be working well with these settings! |
any solution??? |
It's a bit complicated, but this seems to be the only way for now. |
|
Any solution? |
I am trying to integrate the OneSignal SDK with a Flutter iOS app having multiple schemes or flavors, i.e., experimental and production. The configuration only works fine with the production scheme. Is there any guidance or documentation on how to configure OneSignal for multiple schemes?
For more configuration, we have different bundle identifiers for experimental and production.
For production: com.xxxx.app
For experimental: com.xxxx.app.exp
I tried creating separate targets for notification services extension i.e. OneSignalNotificationServiceExtension for production and ExpOneSignalNotificationServiceExtension for experimental which contains separate identifiers as prefix.
The text was updated successfully, but these errors were encountered: