Xamarin Watchkit watchextension communicate with main app when iPhone is locked

I published a apple watch app using Xamarin watchkit, but the following update was rejected because the apple tester found that the watch extension app can’t communicate with main app when the iPhone is locked. in another words, the watch app works until the phone is locked.

The advice from apple is to use the delegate handleWatchKitExtensionRequest:reply:, and use the beginBackgroundtask and endBackgroundtask.

I followed all the guidelines like use the BeginBackgound task and EndBackgroudTask in the handling code in main app, but still being rejected because they found the same issue still occurrig.

Now I enable the background mode for the main app, but not sure whether it will work…
Thanks in advance for your advice….

Source: ios

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.