I have Firebase analytics data and enabled BigQuery. But I have a requirement to validate the number of events and screens at app side under automated UI testing. Anyway to
There is no API to retrieve Google Analytics data through Firebase. See Can I get firebase analytics data using query?
There is also no API for BigQuery to allow secure access directly from your client-side app. That would be a significant security risk, as you'd be exposing data about all of your users to all of your users.
The usual way to implement functionality is to create a custom endpoint (either using a server you already have, or Cloud Functions for Firebase) that exposes just the information your clients need access