BugfenderSDK-iOS icon indicating copy to clipboard operation
BugfenderSDK-iOS copied to clipboard

[feature request] Expose "enabled on console" boolean

Open danydev opened this issue 3 years ago • 2 comments

While working with Bugfender, we think would be useful to add to the sdk a method to know if the current device is in "debug" mode. Or in other words if we enabled the device through the Bugfender web console.

That would allow us to send additional logs or enable additional verbose options on 3rd party SDKs, that usually we would not print/enable to avoid too much overhead.

danydev avatar Nov 30 '21 10:11 danydev

Hi there, thanks for the suggestion. We'll take it into account for future versions.

Please note the SDK is asynchronous, meaning the moment when you log and the moment when the SDK talks to our server might not be the same. This means there is, by design, no reliable way to tell if the device is enabled or not at the moment of logging.

As a workaround, you could use a feature flag from your server, an S3 bucket or a tool like https://configcat.com.

jgimenez avatar Dec 01 '21 13:12 jgimenez

Thanks, I agree, I think it's a nice-to-have feature even with such limitation.

Temporarily we inserted a "hidden gesture" to perform to enable those additional logs. We can do it this way since we enable bugfender's debug mode during a video call with the final customer, so we can instruct him to do so.

danydev avatar Dec 01 '21 15:12 danydev