Comments (3)
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
from purchases-ios.
Hey @jesus-mg-ios!
This looks expected - once attribution data is set for a subscriber, it can't be changed. This way attribution data can be associated with the original installation without getting overwritten. The error that you are seeing: "Media source cannot be modified." is letting you know that this attribute already exists for the user, so it's not preventing you from setting attributes but from modifying the previously set attribute any further. This applies to device identifiers as well. You can read more about this in our documentation here: https://www.revenuecat.com/docs/customers/customer-attributes#reserved-attributes
from purchases-ios.
Thank you for your response, @kmurphy-rc. Perhaps I wasn't clear enough. It seems like RevenueCat might be removing attributes at certain points. I was thinking about the method mentioned here, specifically when and where it is called, and if it might be causing issues related to data races.
For example, if the data is being cleaned while another thread is still writing a new user ID, the old user ID might be written by mistake. Creating an actor to manage all read and write operations could potentially solve this hypothetical data race problem. Currently, the workaround is to force a sync, which results in the error you pointed out.
However, I've noticed that RevenueCat does not always sync attributes when the app is backgrounded or when a purchase is made. Syncing happens sporadically, and most of the time, without forcing a sync, it does not occur.
from purchases-ios.
Related Issues (20)
- '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
- Request for Lightweight SDK for App Extension (Eg Widget) HOT 1
- [Proposal] XCFramework binary size HOT 3
- Performance of `PurchasesReceiptParser.default.parse(from:)` could be drastically improved. HOT 1
- No access to transaction when using paywall UI HOT 3
- Invalid receipt on production (No sandbox) HOT 3
- Provide the package in the paywallFooter closures like PurchaseOrRestoreCompletedHandler, PurchaseCancelledHandler or PurchaseFailureHandler HOT 3
- Bug purchasing product HOT 6
- paywallFooter handlers like purchaseCompleted or purchaseCancelled are not called with the release 5.0.0 HOT 12
- Apple Search Ads attribution data stopped showing up HOT 4
- RevenueCat - Checking subscription status always returns active HOT 3
- Feature Request: Split the RevenueCat XCFramework into Separate UI and Core Frameworks HOT 12
- Could be the purchase delegate exists without marking it as Objc and not inherent from NSObject (for example AnyObject) HOT 2
- Localization Error on Template 7 Paywall HOT 3
- Feature Request: Show Current Plan on Subscription Templates HOT 2
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.