Comments (3)
workaround until this is fixed:
function checkConsent (consent: string) {
const featuresArray = this.groupedFeatures[consent]
if (featuresArray == null) {
return countlySdkWeb.check_consent(consent)
}
return featuresArray.every((feature) => countlySdkWeb.check_consent(feature))
}
from countly-sdk-web.
Hi SgtPooki thank you for reaching out. Consent grouping is a convenience method for adding or removing consent. It is not intended for using with check_consent function, which is implemented to check only a specific core consent, not a consent group. So currently that function is not tracking the state of consent groups and we do not want it to do that also in near feature. But as you have mentioned it, it would be better for us to give the developer a warning, stating that they should not be using this function with a consent group name. We will consider the possibility of this option in future releases. Thank you.
from countly-sdk-web.
@turtledreams Thanks for the extremely quick response.
At the minimum, I would suggest a docs update, but it's good to know this is expected.
from countly-sdk-web.
Related Issues (20)
- Do you offer a notification service for web HOT 2
- Element is Not Defined With React Integrations HOT 1
- Countly installs a non-compliant polyfill for Element.closest HOT 8
- Lighthouse error "Registers an unload listener" from the tracking script HOT 1
- Pass user agent with all requests HOT 1
- [Security Issue] Semi-persistent DOM XSS HOT 2
- How to integrate this sdk with βAnt Design Proβ? HOT 2
- version inconsistencies HOT 2
- It is not possible to cancel the timed event HOT 5
- Session duration issues HOT 2
- Shipping Countly In a WebWorker Context HOT 11
- Device ID not used for the queued queries when disabling offline mode HOT 1
- Specific consent for remote config HOT 5
- use countly-sdk-web in NextJs HOT 6
- Recommendation: Any plan on modularising the application/splitting into multiple files and also any plan of converting to typescipt. HOT 8
- send json string to countly HOT 2
- Source maps
- Uncaught TypeError: Converting circular structure to JSON HOT 4
- CORS issue with Next.js and countly-sdk-web HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from countly-sdk-web.