Help Center/ Meeting/ Client SDK Reference/ FAQs/ iOS SDK/ What Should I Do If Notification Methods Cannot Be Implemented?
Updated on 2024-07-30 GMT+08:00

What Should 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 delegate method. If the delegate 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 delegate.
    NSLog(@"Check whether the delegate exists.:%@", globalHandler);
    // Check whether the delegate method exists.
    if(globalHandler && [globalHandler respondsToSelector:@selector(onKickedOut:)]){
        NSLog(@"The delegate method exists.");
    }