Closed tommyokeefe closed 7 months ago
initialize
returns false here because we detect that it is a crawler/bot. We do not want crawlers to populate the data coming into the SDKs.
If you want to allow crawlers through, I believe there is an option to enable it OPTIONS.ALLOW_CRAWLER_ACTIVITY
Hi @tommyokeefe thank you for reporting.
Given that this issue is 2 weeks old I will close it for now. Please re-open if you believe further action is required.
Braze Web SDK Version
4.8.3
Integration Method
NPM
Browser
Chrome
Steps To Reproduce
Using a specific User Agent (this one is the user agent from prerender.io) test the following:
Expected Behavior
Should return type
FeatureFlag[]
according to the docs - https://js.appboycdn.com/web-sdk/4.8/doc/classes/braze.featureflag.htmlActual Incorrect Behavior
Returns
undefined
Verbose Logs
Additional Information
Seems like a simple type issue. I'm not sure why the user agent effects the return value, maybe it's something you're doing to differentiate bots from users?