Comments (2)
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.
- I suggest you
activate
Adapty outside your core component. You would not need to providecustomerUserId
. 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 = () => {
// ...
- You would not need methods like
.logout
,.identify
at all. They are made for those with second (mostly useless) authorization - Your flow would be extra-simple. There won't be any heavy vendor-lock and code is easily maintainable:
activate
,getProfile
, and thengetPaywall
,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:
- 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
- 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.
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)
- IOS Introductory Offers and Promotional Offers
- Functionalities not working in release mode HOT 43
- FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':react-native-adapty:compileDebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction > Compilation error. See log for more details HOT 3
- Attempt to invoke virtual method 'java.lang.String com.google.gson..JsonElement.getAsString()' on a null object reference HOT 8
- (encodingFailed): Failed to find encoder for property "customerUserId"
- Calling adapty.identify(id) inserts last purchase record
- `adapty.activate()` function crashes the app when API key is invalid HOT 1
- Adapty prompts to sign in with Apple ID HOT 1
- iOS build fail HOT 8
- Firebase v19 and Adapty v2.9.6 Conflicts on Android HOT 2
- Android Missing PurchaseToken in AdaptyProfile
- Expo EAS Android build failure: Could not find io.adapty.internal:crossplatform:2.10.3 HOT 5
- Code not executed after call the adapty.makePurchase method HOT 11
- TypeToken must be created with a type argument: new TypeToken<...>() {}; When using code shrinkers (ProGuard, R8, ...) make sure that generic signatures are preserved. HOT 17
- Does the example in the repo still work? HOT 1
- Can't build in dev mode: Could not find io.adapty.internal:crossplatform-ui:2.1.1. & Could not find io.adapty.internal:crossplatform:2.10.3. HOT 2
- 'nil' requires a contextual type HOT 3
- activation error 2.7.0-canary.1 HOT 10
- [IOS 17] requestSubscripition infinite loop HOT 3
- [IOS] Error while fetching paywall products on real device and emulator HOT 9
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 adaptysdk-react-native.