-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Discrepancy in Firebase Performance Metrics Between iOS and Android for React Native App #8168
Comments
Hi there! With apologies I'm not sure anyone will have time to look at this and your project appears to be a great reproducer at the moment If it's in react-native-firebase obviously we'd happily merge a patch. |
Hey Team, We have integrated the Firebase in our project through the React Native Firebase and we are following the steps for performance monitoring which is mentioned in the Firebase Performance Monitoring documentation. Below are the details of the Firebase dependencies in package.json.
Once any customer comes to the particular page then on the page focus and API call for the particular page, we start the trace for that page. and once we get the API response then we are stopping the trace for the page. Please find the below code snippet for start/stop traces. We are sending the link on the Product List Page and based on the link dependency we are calling the API.
Below is the state which is defined in the reducer through which we are identifying whether that API is calling or not.
Below is the useEffect which is dependent on the isFocused & loadingProductListData state.
Start Trace Functions
Stop Trace Functions
but we are getting a significant difference in Firebase performance metrics on both platforms Android and iOS. Please suggests. Thanks |
@RohitVGL did you read my comment? It does not seem like any of my suggestions were attempted --> #8168 (comment) |
@mikehardy, Can you please clarify more about the last comment action points? |
I just re-read them, they seem clear to me. I can't clarify more without knowing what you want clarified. To summarize:
You'll make decisions based on the logging output about where the problem is in terms of layers. Could be native SDK (firebase-ios-sdk or firebase-android-sdk). Could be react-native-firebase. Could be react-native. You will do this work and request support in the appropriate area. My hunch is that it is not in the react-native-firebase layer. I suggest how to approach support directly with firebase-ios-sdk if it's at their layer. Is any of that not clear? If so ask very specifically for the thing you need clarified, however, if it is a technical implementation question (for example, "how do I implement native logging" or "how do I see native logging on iOS"), I will refer to stackoverflow, as they explain much better than I do and they have examples. |
We are observing a significant difference in Firebase Performance metrics between iOS and Android platforms for the React Native app. While Firebase reports show high latency and delays, the actual app performance doesn't reflect such issues. Moreover, the discrepancy between both platforms' metrics is notable, adding to the confusion. We need support in investigating the cause of this variance and ensuring consistent and accurate performance monitoring across both platforms.
Like:
On some pages, we have added the custom trace for Firebase, but these traces show different durations for Android and iOS.
ProductListPage:
Android: 10.29s on 11K samples
iOS: 3.75s on 11K samples
Code Snippet:
Functions
Functions Calls
It's also happening for the automatically captured trace like _app_start. we are getting different durations for Android and iOS.
Thanks
The text was updated successfully, but these errors were encountered: