xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

Xamarin.Firebase.iOS.Analytics 6.9.0 don't work! #460

Open MartinRValdez opened 3 years ago

MartinRValdez commented 3 years ago

When I add the nuget version 6.9.0 to my project show this errors.

Captura de Pantalla 2020-11-18 a la(s) 11 27 49

I create a new empty project and add this nuget, the error is the same

Meekohi commented 3 years ago

Same.

fabian1122 commented 3 years ago

Over here the same problem when updating to the latest versions of firebase

mayhammf commented 3 years ago

Hi, I had the exact issue in a newly created project. Linking issue go away as soon as you reference Firebase.Analytics.Analytic anywhere in your code. Attached the sample project i tested with. (Analytic reference is added in AppDelegate.cs) Firebase - iOS - Test sln.zip

Note that you have to replace "GoogleService-Info.plist" file with your own in order to run the app.

MartinRValdez commented 3 years ago

@mayhammf thanks for your answer! Your solution works fine in development. But in release still does not work, any ideas?

bohdant commented 3 years ago

@mayhammf you saved the world again! thank you!

AnnaBagriy commented 3 years ago

Add Firebase.Analytics.Analytics.SetAnalyticsCollectionEnabled(true); right after Firebase.Core.App.Configure(); in AppDelegate.cs and it will work for both Debug and Release modes.