What is the difference between using a delegate (used in the Magic Weather sample app), vs calling Purchases.shared.getCustomerInfo or Purchases.shared.customerInfo() as shown here?
Should you use both at the same time, or only one per project?
What is the difference between using a delegate (used in the Magic Weather sample app), vs calling Purchases.shared.getCustomerInfo or Purchases.shared.customerInfo() as shown here?
Should you use both at the same time, or only one per project?
Best answer by joan-cardona
Hi
It depends on your needs, the delegate will be triggered when there’s a change and it will call a certain function where you can perform some action if you need it. Reading it from the singleton shared.customerInfo() will allow you to read data when you request it and perform an action at that moment.
Let me know if that helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.