pendo-io / pendo-mobile-sdk

Pendo captures product usage data, gathers user feedback, and lets you communicate in-app to onboard, educate, and guide users to value
https://www.pendo.io
Other
57 stars 2 forks source link

How to configure on AppDelegate.swift file #26

Closed khayargoli closed 1 year ago

khayargoli commented 1 year ago

Hello Pendo team,

So I was going to configure PENDO for flutter ios and I am following this tutorial: https://support.pendo.io/hc/en-us/articles/4405680165019-Developer-s-Guide-To-Installing-The-Pendo-Flutter-SDK#pendo-setup-and-initialization-0-3

Here in my project's AppDelegate.swift file I find this content already present, so how will be configuring it like described in the above tutorial? Will I be copy pasting the function in the guide in here or merge it in some way?

Please Help me, thanks a lot.

import UIKit
import Flutter
import Pendo

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
     application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }

}
MikePendo commented 1 year ago

The only thing u need to have in the Appdelegate is the open url method (and Pendo import). I would suggest to look in the GitHub docs here I think its more clear. Its mainly done for the pairing ( we dont yet support coddles solutions although we had couple of successful POCs on that matter )

MikePendo commented 1 year ago

@khayargoli I am closing the issue, feel free to open it or asking