From d3ba3ffc78ad4070b0444c71e1a2fb4e61c77277 Mon Sep 17 00:00:00 2001 From: Andy Boedo Date: Thu, 22 Apr 2021 16:16:48 -0300 Subject: [PATCH] updated sample app to use identity v3 --- .../MagicWeather/Sources/Controllers/UserViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/MagicWeather/MagicWeather/Sources/Controllers/UserViewController.swift b/Examples/MagicWeather/MagicWeather/Sources/Controllers/UserViewController.swift index 886c8788d6..c7fa921b60 100644 --- a/Examples/MagicWeather/MagicWeather/Sources/Controllers/UserViewController.swift +++ b/Examples/MagicWeather/MagicWeather/Sources/Controllers/UserViewController.swift @@ -69,7 +69,7 @@ extension UserViewController { #warning("Public-facing usernames aren't optimal for user ID's - you should use something non-guessable, like a non-public database ID. For more information, visit https://docs.revenuecat.com/docs/user-ids.") /// - Call `identify` with the Purchases SDK with the unique user ID - Purchases.shared.identify(username) { (purchaserInfo, error) in + Purchases.shared.logIn(username) { (purchaserInfo, created, error) in if let error = error { self.present(UIAlertController.errorAlert(message: error.localizedDescription), animated: true, completion: nil) } @@ -92,7 +92,7 @@ extension UserViewController { Note: Each time you call `reset`, a new installation will be logged in the RevenueCat dashboard as that metric tracks unique user ID's that are in-use. Since this method generates a new anonymous ID, it counts as a new user ID in-use. */ - Purchases.shared.reset { (purchaserInfo, error) in + Purchases.shared.logOut { (purchaserInfo, error) in if let error = error { self.present(UIAlertController.errorAlert(message: error.localizedDescription), animated: true, completion: nil) } else {