xcode – How can I take advantage of the present firebase-ios-sdk dependency in my native swift code?

[ad_1]

I’m engaged on a Flutter app that makes use of the FlutterFire firebase_messaging package deal.

I want so as to add supply stories to my app, however the FlutterFire library doesn’t help this.

So I need to implement this native swift code.

However for this code to compile I need to add the firebase-ios-sdk package deal to my ‘Runner’ mission.

When constructing I now get the error…

Error (Xcode): redefinition of module 'Firebase'

As a result of each my Runner mission and the FlutterFire dependency are each together with the firebase-ios-sdk.

How can I import FirebaseMessaging in native swift code, whereas utilizing the firebase-ios-sdk dependency that FlutterFire already imports?

[ad_2]

Leave a Reply