watchOS integration
When a parent app is installed on the mobile, user consent is shown to the user. The preferences set by the user (in the parent mobile app) will be applicable to the watch app and the same is notified to the user. (Please note that the watch app is completely dependent on the parent mobile app).
Below is the content for the user consent pop-up that will appear in the parent app and info in the child app:
The below message is shown when the user reopens the watch app after a crash. The user can choose any of the three options provided to him. Chosen user preferences will be synced between the watch app and mobile app.
Implementation
You can follow the same set of implementation for both mobile and watch development.
Copied#import <Apptics/WCSessionSwizzlerDelegate.h>
[Apptics initializeWithVerbose:true];
WCSession *session = [WCSession defaultSession];
//session.delegate = self;
//comment the above line and add the below lines.
session.delegate = [WCSessionSwizzlerDelegate getInstance];
[WCSessionSwizzlerDelegate getInstance].sessionDelegate = self;
[session activateSession];
Copiedimport Apptics
Apptics.initialize(withVerbose: true)
let session = WCSession.default
//session.delegate=self
//comment the above line and add the below lines
session.delegate=WCSessionSwizzlerDelegate.getInstance()
WCSessionSwizzlerDelegate.getInstance().sessionDelegate=self
session.activate()