smartlook / smartlook-mobile-issue-tracker

Official Smartlook issue tracker for mobile SDKs
4 stars 0 forks source link

Can't hide a sensitive view #115

Closed somebody32 closed 2 years ago

somebody32 commented 2 years ago

Platform iOS simulator, haven't tried Android

Technology React Native

Build instructions [optional] RN 0.66.2

Smartlook SDK version 1.2.2

Summary I'm trying to occlude a sensitive view inside the App following the official docs and still seeing the content on the recordings.

Tried

  1. with a hook
    
    const ref = useSmartlookSensitiveRef<View>(true);

... <View ref={ref} ... />



in the console I have `👀Smartlook: [Line 357] 'setViewIsSensitive:' isSensitive: 1` but content is visible.

2. The same effect with directly calling `registerBlacklistedView` and passing the ref (have a different debug message in the console but nothing more)
krystofcelba commented 2 years ago

Hi, Could you please send a snippet of code where you do the hiding of the sensitive content?

Thanks!

somebody32 commented 2 years ago

hi @krystofcelba,

as I've stated in the post, I've tried useSmartlookSensitiveRef and registerBlacklistedView to no avail.

I'm trying to debug the issue more, but I don't have anything extra to add: I've tried to hide plain View and Text components. I've initially thought a View being Animated and positioned absolutely with transform have to do something with it, but later tried to occlude static Views but also failed.

I think I'll try to generate a new rn app to try to pinpoint the issue

krystofcelba commented 2 years ago

Yes, some minimal example with the issue shown would be best.