Giter Site home page Giter Site logo

Comments (3)

RCGitBot avatar RCGitBot commented on August 30, 2024

👀 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.

kmurphy-rc avatar kmurphy-rc commented on August 30, 2024

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.

jesus-mg-ios avatar jesus-mg-ios commented on August 30, 2024

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)

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.