简体   繁体   中英

WatchOS sendMessage sent only when watch app come back to front

I have a new problem I never met before. I didn't change my app code since Friday, and I have different behavior.

When my app execute a sendMessage, it doesn't works immediately. The message is sent only when the app come back in front.

I use a lot of sendMessage and it worked perfectly since I started my app, several weeks ago.

For information, I just updated my Watch to Watch OS 2.2 this weekend.

Note I have this problem only with my watch, it works fine on the simulator.

I just finished first apple watch connectivity app following this tutorial:

I received the message from sendMessage() immediately. I hope it helps.

It seems really abnormal behavior very, I developed several apps with message passing, never encounter your own abnormal. It is not that you are sending very large messages or've set some particular condition?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM