Skip to content
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

Xamarin.Firebase.iOS.Analytics not logging session_start until event triggered. #156

Closed
ilanolkies opened this issue May 31, 2018 · 5 comments
Closed
Assignees

Comments

@ilanolkies
Copy link

@ilanolkies ilanolkies commented May 31, 2018

I created a simple app with Xamarin.Forms, and I'm trying to log session_start event.
This event should be sent automatically with App.Configure() but it's not happening until an event is raised.

For example:
This logs nothig: (not even session_start, first_open, etc.)

public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App());

     Firebase.Core.App.Configure();

     return base.FinishedLaunching(app, options);
}

but this logs everything...

{
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App());

     Firebase.Core.App.Configure();
     Firebase.Analytics.Analytics.LogEvent("app_open", null);

     return base.FinishedLaunching(app, options);
}

No exception is thrown.
Using XCode simulators.
Xamarin.Forms version: 3.0.0.482510
Xamarin.Firebase.iOS.Analytics version: 4.0.5.1, all needed packages installed.

@ilanolkies ilanolkies changed the title Xamarin.Firebase.iOS.Analytic not logging session_start until event triggered. Xamarin.Firebase.iOS.Analytics not logging session_start until event triggered. May 31, 2018
@SotoiGhost
Copy link
Member

@SotoiGhost SotoiGhost commented Aug 31, 2018

Hi @ilanolkies! Sorry for the late response on this. I have just created a new Xamarin.Forms app, added Firebase Analytics right out of the box and everything seems to be working as expected, on simulator and on a device. Here's a screenshot of the events logged:

  • Simulator

  • Device

Can you, please, update to the latest version and try to see if everything is working as expected on your side? Thanks in advance!

Best,
Israel Soto.

Loading

@ilanolkies
Copy link
Author

@ilanolkies ilanolkies commented Aug 31, 2018

@SotoiGhost I’ll try it and tell you ASAP! Thanks.

Loading

@newky2k
Copy link
Contributor

@newky2k newky2k commented Sep 17, 2018

no response for over two weeks, closing

Loading

@newky2k newky2k closed this Sep 17, 2018
@asatya001
Copy link

@asatya001 asatya001 commented May 1, 2019

giving monotouch error M1201 if iset "Link all assebly" in xamarin ios, tried with --register:static argument passing in all configurations

Loading

@asatya001
Copy link

@asatya001 asatya001 commented May 13, 2019

and it works when you set don't link (its not good practice though), after uploading to testflight i got terrible email from apple that it states
" Missing Purpose String in Info.plist File
with NSContactsUsageDescription, NSMicrophoneUsageDescription, NSAppleMusicUsageDescription, NSSiriUsageDescriptionl, aps-environment even though app is not using these stuff, more about my concern is ,when i go for live apple will reject the app with complains these issues, is there any work ground for it.

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants