Git Product home page Git Product logo

Comments (3)

aboedo avatar aboedo commented on September 18, 2024

Hey there, thanks for reporting! This has also been reported in Stack Overflow, , but it's nice to track it here as well. Answer from SO:

This is caused by a bug in purchases-ios, present in versions 3.1.0 -> 3.2.2, where the log gets issued even though the method no-ops, if there aren't any subscriber attributes that need to sync (which will be your case unless they're being set to different values very often).

It will be fixed in the next release, 3.2.3, coming out this week (along with other fixes).

What's happening is that RevenueCat attempts to sync Subscriber Attributes (https://docs.revenuecat.com/docs/subscriber-attributes) whenever the app is foregrounded or backgrounded. An app is considered foregrounded/backgrounded on tvOS when UIApplicationDidBecomeActiveNotification or UIApplicationWillResignActiveNotification get fired. If there are no attributes that need syncing, the method early exits, but the current version still issues the log saying that they've synced successfully.

I'm not quite sure why tvOS is firing those two notifications while the TV is off, but I'll dig in a bit more and let you know.

To clarify again, though, the method won't do anything unless new Subscriber Attributes have been set in between foregrounding or backgrounding, or unless they've been set to different values than the current ones.

I'll update the ticket once the fix gets released.

from purchases-ios.

aboedo avatar aboedo commented on September 18, 2024

it looks like UIApplicationDidBecomeActiveNotification and UIApplicationWillResignActiveNotification behave a little oddly on tvOS:

https://stackoverflow.com/questions/35573349/apple-tv-application-does-not-resign-active-on-sleep-mode

So that's the reason that the method is getting called. Like I mentioned before, the method doesn't actually do anything, and the log will be fixed by the next release.

from purchases-ios.

aboedo avatar aboedo commented on September 18, 2024

version 3.3.0 is out, and it shouldn't have these extra logs (although UIApplicationDidBecomeActiveNotification and UIApplicationWillResignActiveNotification behavior is out of our control, so you will likely still see the didbecomeactive message).
Closing this out for now

from purchases-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.