I have added logs on both WKExtensionDelegate and WKInterfaceController. Here is what i get when playing around with starting and exiting the app in Watch OS Simulator. (Simulator is running watchOS 4.2)
Step 1: Upon first start of the app here are the logs i see:
- Init ExtensionDelegate
- applicationDidFinishLaunching
- applicationDidBecomeActive
- awake withContext
- willActivate
- didAppear
Step 2: While I am in-app, after pressing home button (Cmd-Shift-h), I geth the following logs:
- applicationWillResignActive
- didDeactivate
- willActivate
- didAppear
- didDeactivate
Step 3: I start my app again from app screen (the same goes when starting it from a complication)
- applicationDidBecomeActive
- willActivate
Question 1: in Step 2, didDeactivate
is called 2 times, also willActivate
and didAppear
are called for some reason. I would expect just didDeactivate
to be called one time. Has anyone got the answer for why this happens?
Question 2: in Step 3, after willActivate
i would expect didAppear
to be called. Why is it not called?