Coder Social home page Coder Social logo

Comments (4)

daveclay avatar daveclay commented on July 24, 2024

FYI - I'm working around this by re-setting that property with my own list of loaded product IDs in the load callback:

        self.storekit.constructor._productIds = self.loadedProducts;

from cordova-plugin-purchase.

j3k0 avatar j3k0 commented on July 24, 2024

Labelled this as "enhancement":

make sure the new store.register() method can be called at any moment of the application life-cycle to load additional products.

Did you run any experiments on how expensive it is to load all hundreds of products at start? I would be interested by some numbers, or even approximations.

from cordova-plugin-purchase.

j3k0 avatar j3k0 commented on July 24, 2024

I just did some experiment. The highest data size I could reach for 1 single product using all 75 characters of the title and 255 characters for the title is 417 bytes.

Assuming Apple doesn't enable compression on their requests (which I doubt, but who knows), it will be a maximum payload of 41kB for each 100 products.

Now if it's compressed (which I suspect), there would be no reasons to optimize the loading of products even if there are thousands of them. Some real world experiment would be required though.

from cordova-plugin-purchase.

stale avatar stale commented on July 24, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from cordova-plugin-purchase.

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.