Unable to perform HTTP request while testing on physical device
Hi everyone,
We are developing a simple Smart Mini App that communicates with our custom backend. We have a problem with testing the app on real device (Live Preview feature, scanning QR code from the IDE) because we are unable to perform a single outgoing HTTP request...
ty.request({ url: '<CUSTOM_BACKEND_URL>', header: '<AUTH INFO>', complete: () => { console.log('complete') }, success: (data) => { console.log('success', data) // NEVER CALLED }, failure: (error) => { console.log('failure', error) // NEVER CALLED }, })
While complete callback is called both success and failure are never invoked so we have no idea what is going on. In the IDE it works as expected. Does anyone came across similar issue maybe?