microsoft/clarity

setCurrentScreenName in Android Native

ihgoo opened this issue · 6 comments

HI,
Calling setCurrentScreenName in the Android Native SDK always returns false. However, I saw that the React Native SDK changelog has a new setCurrentScreenName API. Does the Android Native SDK not support the setCurrentScreenName function?

Used com.microsoft.clarity:clarity version 2.1.1

Hi,

This API is currently limited on ReactNative apps only. Could you please explain the use case in which you'd like to have this functionality?

Hi,

This API is currently limited on ReactNative apps only. Could you please explain the use case in which you'd like to have this functionality?

The React Native SDK Changelog states that the setCurrentScreenName API has been added to support setting the current screen name, which enables filtering on a certain screen on the dashboard.

So the native SDK also needs this feature.

We initially designed this API to help RNative users identify different screens in their apps. This is because RNative apps usually have a single screen with different fragments. But we've been getting more and more requests to expose the same API for native apps as well, so we'll be considering that and might need to redesign how it works to best fit all of our customers.

We initially designed this API to help RNative users identify different screens in their apps. This is because RNative apps usually have a single screen with different fragments. But we've been getting more and more requests to expose the same API for native apps as well, so we'll be considering that and might need to redesign how it works to best fit all of our customers.

Looking forward to having the same API implemented in the native SDK as well. Thank you!

@ibradwan not working properly with React Native either. #562 (comment)