To allow the iOS SDK to respond to the connection and state changes in your iOS client app, you have to implement all of our application delegate methods in your UIApplicationDelegate methods in appDelegate file.
After you initialize the MeetTalk, you have to connect and implement these methods in your UIApplicationDelegate methods in appDelegate file to make sure TapTalk.io runs smoothly in your application.
If you have previously implemented PowerTalk SDK in your app, simply import MeeTalk.h class to your AppDelegate, then change TapTalk to MeetTalk the application delegate method implementations
Application Delegate Method
Description
application:didFinishLaunchingWithOptions
Tells the delegate that the launch process is almost done and the app is almost ready to run.
applicationWillResignActive:
Tells the delegate that the app is about to become inactive.
applicationDidEnterBackground:
Tells the delegate that the app is now in the background.
applicationWillEnterForeground:
Tells the delegate that the app is about to enter the foreground.
applicationDidBecomeActive:
Tells the delegate that the app has become active.
applicationWillTerminate:
Tells the delegate when the app is about to terminate.
application:
didRegisterForRemoteNotificationsWithDeviceToken:
Tells the delegate that the app successfully registered with Apple Push Notification service (APNs).
application:didReceiveRemoteNotification:
fetchCompletionHandler:
Tells the app that a remote notification arrived that indicates there is data to be fetched.
handleException:
Tells the delegate when application throws exception.
Note: You have to implement application:didRegisterForRemoteNotificationsWithDeviceToken and application:didReceiveRemoteNotification to handle and receive notification from TapTalk.io.
You have to add below code NSSetUncaughtExceptionHandler(&handleExceptions); in application:didFinishLaunchingWithOptions:method to register uncaught exception handler and add delegate function handleExceptions.
Note: Don't forget to register for exception handler inside application:didFinishLaunchingWithOptions: method and implement handleExceptions method in appDelegate class to make sure TapTalk.io able to handle exceptions.