Closed oguzydz closed 2 months ago
We want to use clarity for ios. Is there any information about when it will be published?
@CMLCNL Thanks for your interest in Clarity. We are actively working on the iOS package. If you are interested and would like to be considered for our private preview, please send us more details about your application to clarity-apps-support@microsoft.com (with "Private Preview Client" in the subject).
I also find this warning to be annoying and feel it's not necessary.
Also thanks for the info on the iOS preview. Have just applied.
Please fill this form to join our early access list for viewing iOS SDK: https://forms.microsoft.com/r/Rdy94iErqB
Is there a way to hide this warning?
@obayit You can conditionally initialize and call Clarity functions using Platform.OS === 'android'
.
iOS support has been released.
I note however that, as of version 3.0.0, which I believe is the latest, the SupportedPlatforms in index.ts is still 'android' only, so the error appears, even when enableIOS_experimental is true in the config.
Thanks @IanLukeFinley for reporting that. @amralaa-MSFT Can you please double check?
@IanLukeFinley the ios
value gets added in runtime to SupportedPlatforms
only after initialize()
is called with enableIOS_experimental === true
. This means that calling any other APIs such as setCurrentScreenName()
would cause this warning to show up because ios
value hasn't been added yet.
Could you please double check that your app doesn't use other Clarity APIs before initialize()
is called? If that's the case, can you tell us where you call initialize()
?
Yes, the issue seems to be the NavigationContainer in our App.tsx, which calls setCurrentScreenName before Initialize (which happens in our MainWrapper.tsx, a step down), when structured as you lay out in the readme. By removing the call for setCurrentScreenName from onReady, the flow happens in the correct order.
This issue has been fixed in a recent release.
It's nice to be informed, but being warned repeatedly is annoying. I thought about removing it manually. However, it might also raise awareness for others.