Discussions
Expo's EAS android build broken
I'm trying to use adapty with Expo (with expo-dev-client), which is going fine on iOS so far. On Android, when launching the eas build, I'm getting the following error :
> Task :react-native-adapty:compileDebugKotlin
[stderr] e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
[stderr] e: /home/expo/.gradle/caches/transforms-3/2ae867a2e11de942398247e9a7b7c6a4/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
I'm using the 2.3.1 react-native-adapty, everything is up to date on expo/eas side.
Posted by Sébastien F. about 1 year ago
ITMS-90078: Missing Push Notification Entitlement
We are not intending to use promo campaigns, so I have not set up push notifications in Apple Developer. I am receiving a notification every time I upload a build to App Store Connect that I am missing the entitlement however.
Is there any I can do to disable the use of push notifications in Adapty so this isn't triggered, or is there another solution?
Posted by Daniel Murfin over 2 years ago
Adapty Error: #1000 (noProductIDsFound): No In-App Purchase product identifiers were found.
I'm using React native and I've added all products to both Adapty and stores (ids). But still I'm getting this error:
` ERROR [Adapty JS] — ERROR: : <-- Native SDK replied with error
error="#1000 (noProductIDsFound): No In-App Purchase product identifiers were found."
nativeError="{\n \"nativeStackAndroid\": [],\n \"userInfo\": null,\n \"message\": \"{\\\"adapty_code\\\":1000,\\\"message\\\":\\\"No In-App Purchase product identifiers were found.\\\"}\",\n \"code\": \"adapty\"\n}"`
Posted by Sefa Demir about 1 year ago
Flutter Crash on Startup for iPhone 6 running iOS 12.4
It seems that after installing `adapty_flutter: 1.0.6` with the following versions of the package via Cocoapods `- Adapty (1.16.3) - adapty_flutter (1.0.0): - Adapty (= 1.16.3)` the application simply crash:
```
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD 1 Library missing
Library not loaded: /System/Library/Frameworks/AdServices.framework/AdServices
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/772E56D9-F7B8-460E-93D7-8DC2083F169F/data/Containers/Bundle/Application/03BB65BD-2F4D-418A-937B-FD851AC8F406/Runner.app/Runner
Reason: image not found
(terminated at launch; ignore backtrace)
```
Posted by Anderson Oki over 2 years ago
"Adapty SDK was not initialized" on Android
I am using React Native to develop my iOS and Android Apps. On iOS, everything works well. But on Android, my adapty.purchases.restore() function throws an error like below;
{"adaptyCode": "sdkNotActive", "code": 403, "localizedDescription": "Adapty SDK was not initialized"}
Also, while getting the products, it turns the empty products (with prices of 0). So, it is not a problem about the connection between my App and Adapty.
I followed the Android instructions part, twice. But the results are the same. What should I do?
Thank you all, in advance.
Posted by Ugur Genc over 2 years ago
React native - subscribe with a promo-code (IOS)
We developed our coupon system and linked it with the app,
but Apple refused the app and enforcing us to use their promotion system
I found some challenges to use the coupon code with the available RN IAP library
so, I used Adapty to make the things more simple
I use this code to show the promo-code sheet
adapty.promo.presentCodeRedemptionSheet()
but it does not show anything
however adapty.promo.canPresentCodeRedemptionSheet() return true
also adapty.promo.getPromo() return null
I'm trying to list the available products, each product have ios.discounts as empty array
however my product have ios discounts !!!
adapty.paywalls.getPaywalls().then((data) => {
data.products.map((d) => {
console.log(d);
});
});
I cannot find a clear way to implement this coupon code
Posted by Ahmed Mohsen about 2 years ago
Preventing multiple application users from sharing single App Store subscription
I have a question regarding the interplay of Apple ID purchases and my application users.
Let's say I have a user, Alice, who creates an application account and purchases a subscription to my app from her iPhone. Great. Now her friend, Bob, is borrowing her phone, so Alice logs out of her application account, and Bob logs into his own non-premium application account on Alice's phone. Bob decides he likes the app so much that he wants to buy the premium subscription, so Alice attempts to make the purchase for him while he's logged into his application user _on Alice's phone, with Alice's Apple ID._ In the ideal case, my application would throw an error, saying that the current Apple ID (Alice's) already has a subscription associated with a _different_ application account (Alice's application account). Is it possible to do this (to either prevent or void the purchase attempt) with the Adapty Swift SDK _without_ having to store some mapping on my own server? This feels like a check that you could do with `StoreKit` before completing a transaction, but since Adapty completes the transaction for you, I'm not sure how to perform this check. I want to avoid having multiple application accounts associated with a single Apple ID or somehow messing up the existing application user <--> apple ID mapping (for example, if Alice's subscription were modified by the subscription purchase on Bob's application user's behalf).
Posted by Marcus over 2 years ago
React native: Error code: 260, Apple sign in is required during adapty.activate
react-native-adapty version is 2.2.1
I am calling adapty.activate(MY_API_KEY) in useEffect, adapty becomes initialized, but along with that for some reason adapty makes an alert in app with title(Sign in to your apple account), this behaviour appears on real device and emulator too.
Also, in xcode appears this error message:
"[Adapty v2.2.2] - ERROR: SKReceiptManager: Receipt Data did not loaded. Error Domain=NSCocoaErrorDomain Code=260 "The file “receipt” couldn’t be opened because there is no such file."
Will be glad for any help.
Thank you in advance!
Posted by Taras Doloshytkyi over 1 year ago
Flutter Android Sandbox Testing
Hi there,
I am trying to test my IAP in Flutter using Adapty on a physical Android device.
The purchases are being registered correctly as Sandbox environment events, however the subscriptions are set to expire at the normal date (actual 1 month duration) rather than the shortened periods for sandbox testing (https://developer.android.com/google/play/billing/test).
Is there any way around this?
Thank you!
Posted by Dino Bossi over 2 years ago