Coder Social home page Coder Social logo

Comments (2)

divanc avatar divanc commented on May 25, 2024 3

Hey, @IgnacioPorte!
You do not need any backend besides Adapty to have a fully functioning purchases system.

THE GOOD

Let me provide some info about backendless app with Adapty.

  1. I suggest you activate Adapty outside your core component. You would not need to provide customerUserId. Adapty extracts (almost) Device ID and uses it to identify user if none provided.
import {adapty} from 'react-native-adapty';

adapty.activate("PUBLIC_KEY", {
  lockMethodsUntilReady: true,
});
function App = () => {
  // ...
  1. You would not need methods like .logout, .identify at all. They are made for those with second (mostly useless) authorization
  2. Your flow would be extra-simple. There won't be any heavy vendor-lock and code is easily maintainable:
    activate, getProfile, and then getPaywall, getPaywallProducts, makePurchase

THE BAD

Let me explore some cons with you though. I'd like you to know what are the problems you can face:

  1. If you do cross-platform app and your user jumps has both iOS and Android devices, there will be no comfortable way to share products and subscription. User would have to buy products anew
  2. If your user has several devices of one platform, he/she will be able to restore purchases. Their subscription will have same duration as their other devices, but Adapty would still consider them two different profiles and even can mess with analytics in some cases

THE UGLY

I love the simplicity you are going for ❤️! It would be easier for you to maintain and easier for user to enjoy!
Between us, these problems are as narrow as it gets! It can only become the problem for media apps, such as Netflix.

from adaptysdk-react-native.

IgnacioPorte avatar IgnacioPorte commented on May 25, 2024

Hello @divanc, I appreciate the information 😃, in this way Adapty is very convenient for me. I think it would be nice to add this in the docs.

from adaptysdk-react-native.

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.