Acknowledged
over 1 year ago

makeWebRequest fails with "Not Enough Arguments" when context is used and bluetooth unavailable

When a Communications.makeWebRequest call is made with a 3 argument callback method for the responseCallback parameter (the variant that includes the context) it works correctly when bluetooth is connected but fails with "Not Enough Arguments Error" when bluetooth is not connected or uninitialised. 

If a 2 argument callback method is provided it works as expected & calls the method with BLE_CONNECTION_UNAVAILABLE

The issue can be replicated in connect IQ SDK 6.4.2, in the simulator and on multiple devices (tried forerunner 955, D2 & Fenix 5) by ensuring bluetooth is unavailable before starting the app.

As it currently stands the 3 argument responseCallback cant be safely used since there's no way for the application to handle connectivity issues, it just crashes with the "IQ !" error message.

Parents Comment Children
No Data