As I read the doc, transferUserInfo is a queued process of 1, and the latest data will surely reach the watch sandbox.
This is the code on the iOS app:
-(void)sendViaTransferUserInfo {
NSDictionary *weatherData = [[NSDictionary alloc] initWithObjectsAndKeys:
self.cityName, @"City",
self.tempCelciusStr, @"Temp",
nil];
WCSession *session = [WCSession defaultSession];
[session transferUserInfo:weatherData];
}
If the iOS app and the watch app are both active, this works all the time.
But when I close the watch app, then call this method again from the iOS app, wait a few seconds and then open the watch app again, the watch delegate didReceiveUserInfo:
is not being triggered at all.
Do I correctly understand transferUserInfo:
usage? Can anybody explain why the delegate is not being called on the watch app?