exponea / exponea-react-native-sdk

MIT License
8 stars 13 forks source link

Can We Avoid Calling the appinbox/fetch Endpoint? #119

Closed phuongwd closed 5 months ago

phuongwd commented 5 months ago

We do not use the appinbox feature, and we would like to avoid calling the appinbox/fetch endpoint altogether.

Currently, there is a call to the appinbox/fetch endpoint in the library, which is not necessary for our use case:

curl 'https://api.eu1.exponea.com/webxp/projects/***/appinbox/fetch' \
-X POST \
-H 'Authorization: Token ****' \
-H 'Host: api.eu1.exponea.com' \
-H 'Connection: Keep-Alive' \
-H 'User-Agent: okhttp/4.9.3' \
-H 'Content-Type: application/json; charset=utf-8' \
--data-raw '{"customer_ids":{"cookie":"***"}}'

Could provide an option or a method to avoid calling this endpoint when the appinbox feature is not in use? Thank you!

adam1929 commented 5 months ago

Hi @phuongwd thank you for question. Yes, SDK tries to fetch AppInbox alongside with other "customer-related" data. Usage of these features is questionable project to project; but SDK is not able to "see" feature-flag configuration from you project setup (and could change in runtime). If you stay that this is still unwanted behaviour, please contact support. Thank you