|
|
@ -73,6 +73,7 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
self.tableView.reloadData() |
|
|
|
updateBalance() |
|
|
|
self.update() |
|
|
|
checkKFTCToken() |
|
|
|
} |
|
|
|
} |
|
|
|
var sections: [Sections] = [.balance, .collection] |
|
|
@ -814,16 +815,15 @@ extension HomeViewController { |
|
|
|
settings.userId = UserDefaults.standard.string(forKey: UserKeys.email) |
|
|
|
|
|
|
|
let profile = Profile() |
|
|
|
guard let username = UserDefaults.standard.string(forKey: UserKeys.fullName) else { |
|
|
|
return |
|
|
|
guard let username = UserDefaults.standard.string(forKey: UserKeys.fullName) else { |
|
|
|
|
|
|
|
guard let username = UserDefaults.standard.string(forKey: UserKeys.fullName) else { return } |
|
|
|
|
|
|
|
profile.set(name: username) |
|
|
|
ChannelIO.delegate = self |
|
|
|
ChannelIO.boot(with:settings, profile: profile) {(_, _) in |
|
|
|
ChannelIO.open(animated: true) |
|
|
|
// For push notification of ChannelIO |
|
|
|
// ChannelIO.track(eventName:"HomeVisit") |
|
|
|
// ChannelIO.track(eventName:"HomeVisit") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|