My Android app is almost ready, and I am sending a message with Andoid :
myConnectIQ.sendMessage(iqdevice, mMyApp, json new ConnectIQ.IQSendMessageListener() {.....}
My json object is [{"name":"Dudu","lat":40.07947,"lon":5.45629}]
When I use the Connect IQ simulator, I use the menu with "Simulation" & "Phone app message", and I paste my json objet. All is OK, it work very well, and I can work with my data.
But when I use the app on my watch, when I send a message with my Android app, the watch app crash immediatly.
I have tried to do nothing with the message, it's the same :
function onPhone(msg) { }
Of course it's the same if I put
var data = msg.data;
Or if I put
cancelAllRequests() ;
My watch app is crashing immediatly
I have, of course put the instructions
if (Communications has :registerForPhoneAppMessages) { Communications.registerForPhoneAppMessages(self.method(:onPhone)); } else if (Communications has :setMailboxListener) { Communications.setMailboxListener(self.method(:onMail)); }
In my initialize() function before.
Some help would be welcome, perhapas have forget something ?
Thank you