Reports not showing events


Here's the code.   analytics is enabled on startup, this is just a redundant check and

None of these events are making it into the report.

// Urban Airship event test SUT Search

    BOOL analyticsEnabled = [UAirship shared].analytics.enabled;


    if( !analyticsEnabled ) {

        [UAirship shared].analytics.enabled = true;



    UACustomEvent *event0 = [UACustomEvent eventWithName:@"searches_made"];

    UACustomEvent *event1 = [UACustomEvent eventWithName:@"searchedFor" valueFromString:searchQuery];


    // Track it

    [event0 track];

    [event1 track];


    // Record the event

    [[UAirship shared].analytics addEvent:event0];

    [[UAirship shared].analytics addEvent:event1];


Didn't find what you were looking for?

New post


1 comment

  • Hello,

    This is Sean with Urban Airship Technical Support.

    What is the context that this code is running in?

    Or which file or class contains the custom event code you shared above?

    Thank you,
    Sean Conlin
    Urban Airship Technical Support
    Portland, Oregon

    Comment actions Permalink

Please sign in to leave a comment.