Comments (3)
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.
it looks like UIApplicationDidBecomeActiveNotification
and UIApplicationWillResignActiveNotification
behave a little oddly on tvOS:
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.
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)
- purchases-ios stuck fetching in Xcode HOT 4
- SPM install takes forever HOT 17
- /v1/receipts api returns status_code 529 HOT 7
- Paywall language changes on every app re-install HOT 6
- "can't find package" error. HOT 4
- Add support for the native macOS platform to the RevenueCat Paywalls HOT 2
- Way to test Promotions in-app purchases from Store HOT 1
- Unable to fetch offering on real device when using Storekit file HOT 5
- Weird state of checkTrialOrIntroDiscountEligibility HOT 6
- Bug: Writing Keys out of container HOT 7
- macOS App hanging for at least 2000 ms because of check for macOS app running on the main thread. HOT 2
- CustomerInfo needs subscriptions. HOT 6
- Subtle Paywall localization issue HOT 4
- Offerings returns available offerings, then doesn't use them HOT 3
- Template 4 As Paywall Footer Has Incorrect Size While Loading, And Never Resizes Afterwards HOT 7
- 'StoreProduct' is ambiguous for type lookup in the context when using RevenueCat with Superwall-iOS v.3.6.3 HOT 4
- "Sign in with Apple ID" modal dialog (with user already signed into App Store app) when calling `purchasePackage` HOT 10
- Should the func onChangeOf<V> be private? HOT 6
- `Xcode 16` / `iOS 18`: Thread 21: EXC_BAD_ACCESS (code=1, address=0xfffffffffffffff8) in ETagManager.Response.encode(to:) HOT 21
- Bug: Last opened is not what is supposed to be. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from purchases-ios.