I am developing a Samsung SmartThings virtual switch application with Google OAuth2.0 authentication. My setup involves fetching device details from a connector file into my app file through the /initiate-discovery endpoint.
However, the device details are not being populated as expected, with the discovery process logging an empty array for devices. Below are the relevant sections of my code and the output I'm receiving. I'm seeking guidance on why the device details from connector are not appearing in the discovery response.
Output received:
App code snippet:
Connector code snippet:
I also manually added a test device to the discovery response in app to ensure that the view rendering logic works correctly, which it does. However, when attempting to add devices through connector, the array remains empty. What could be the reason for this behavior?