clarity icon indicating copy to clipboard operation
clarity copied to clipboard

setCurrentScreenName in Android Native

Open ihgoo opened this issue 11 months ago • 5 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

ihgoo avatar Mar 05 '24 07:03 ihgoo

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?

ibradwan avatar Mar 19 '24 15:03 ibradwan

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.

ihgoo avatar Mar 31 '24 12:03 ihgoo

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.

ibradwan avatar Mar 31 '24 17:03 ibradwan

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!

ihgoo avatar Apr 22 '24 14:04 ihgoo

@ibradwan not working properly with React Native either. https://github.com/microsoft/clarity/issues/562#issuecomment-2142143218

roots-ai avatar May 31 '24 13:05 roots-ai