TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
220 stars 49 forks source link

Using Pages and Screens #90

Closed DavidShochet closed 1 year ago

DavidShochet commented 2 years ago

It seems like Pages and Screens is a natural place to report visiting my mobile app screens by the users. Currently, I see there information that does not seem to be very useful:

image

If I change the filter criteria to have my report by Page Title and Screen Name, I get

image

I read the following:

When you first access the report, you’ll see your data broken down according to page title and screen class. This means you’re looking at all the pages on your site, broken down by the web page title and the developer-supplied screen name.

I cannot figure out if/how the screen name can be supplied. Does your package support this?

TobiasBuchholz commented 2 years ago

A .Net MAUI app basically consists of a single activity (MainActiviy) with all the .Net MAUI framework stuff and navigation on top, but Firebase is build for native android (and iOS) apps, that are using multiple activities. These multiple activities are getting tracked automatically in native android apps, but since there is only a single MainActivity in your .Net MAUI app the automatic screen tracking only tracks this single activity. As a workaround you'll need to track the screens yourself with custom analytic events.