Forum Discussion
Question about barCode.scanBarCode
Dear Sir
Thank you for your reply
Yesterday, I found barCode module is beta(... "Do not use this API in a production environment.")
(https://learn.microsoft.com/en-us/javascript/api/%40microsoft/teams-js/barcode?view=msteams-client-js-latest&viewFallbackFrom=msteams-client-%E2%80%A6).
Instead, I can successfully scan a QR code by using the existing media.scanBarCode.
However, It has another issue . API deprecated (https://learn.microsoft.com/en-us/javascript/api/@microsoft/teams-js/media?view=msteams-client-js-latest)ㅇ
I wonder if MS Teams will provide a sufficient grace period for a gradual migraition
Many thanks
BHS
Microsoft’s typical approach:
Deprecated APIs in Microsoft Teams JS SDK usually remain available for a significant grace period (often 12–24 months or more) after deprecation is announced.
Microsoft will announce end-of-support dates in advance via official documentation, release notes, and the Teams developer blog.
What you should do:
You can continue using media.scanBarCode for now, but monitor the official docs and Teams developer channels for deprecation timelines.