Help Center/ Meeting/ Client SDK Reference/ FAQs/ [iOS] What Do I Do If Notification Methods Cannot Be Implemented?
Updated on 2023-03-23 GMT+08:00

[iOS] What Do I Do If Notification Methods Cannot Be Implemented?

Solve the issue by referring to precautions.

If the precautions cannot solve the issue, print the information before using the proxy method. If the proxy object method cannot be printed, find the cause in the code.

1
2
3
4
5
6
7
8
    // Sample code. View the corresponding object as required.
    id <HWMNotifyHandler> globalHandler = [HWMSdk getSdkConfig].globalHandler;
    // Print the proxy object.
    NSLog(@"Check whether the proxy object exists: %@", globalHandler);
    // Check whether the proxy object method exists.
    if(globalHandler && [globalHandler respondsToSelector:@selector(onKickedOut:)]){
        NSLog(@"The proxy object method exists.");
    }