OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 215 forks source link

[question]: When using Flutter flavor, how can I configure the correct settings on iOS? #851

Closed FullstackWEB-developer closed 6 months ago

FullstackWEB-developer commented 9 months ago

I checked many issues but I can't find correct solution.

https://github.com/OneSignal/onesignal-expo-plugin/issues/40 https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/696

mberktas commented 6 months ago

Hi, @FullstackWEB-developer

I'm in the same situation. Did you find a solution?

mohammadhassan1497 commented 6 months ago

same here

FullstackWEB-developer commented 6 months ago

For those experiencing the same problem.

The main issue was that I didn't know much about Xcode settings. I've been stuck here for a few days.

It was important to read the flavor configuration documentation on iOS carefully. https://docs.flutter.dev/deployment/flavors image The schema setting part was the problem I missed. All names visible in buildConfiguration must match. \ios\Runner.xcodeproj\xcshareddata\xcschemes\production.xcscheme image