-
Notifications
You must be signed in to change notification settings - Fork 15
[3.3.0] You need to be activate Adapty once #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have a hook that fetches a specific paywall: function useEligibleForTrial() {
const [eligibleForTrial, setEligibleForTrial] = useState(false);
const [loadingEligible, setLoadingEligible] = useState(true);
useEffect(() => {
console.log('fetching trials');
async function fetchPaywallAndProducts() {
try {
const paywall = await adapty.getPaywall('trials');
console.log({ paywall });
if (paywall) {
const products = await adapty.getPaywallProducts(paywall);
console.log({ products });
if (products) {
setEligibleForTrial(true);
}
}
} catch (e) {
notify(e, 'error', 'error while fetching subscriptions paywall');
console.log(e);
} finally {
setLoadingEligible(false);
}
}
fetchPaywallAndProducts().catch(console.log);
}, []);
return { eligibleForTrial, loadingEligible };
} This hook is called inside a Why the hook tries to activate Adapty first before the
|
it also happens sometimes in fast-refresh. |
Please contact our support team via [email protected], they will assist you further |
I'm having the same issue after upgrading, @efstathiosntonas did you find a solution??? |
@pmespresso no solution since many things have changed in the native part, adapty team is working on it, I’ve contacted support 5-6 days ago. |
I have the same issue and after fast-refresh adapty.getProfile() undefined |
Do I need to downgrade 3.1.0 ? The problem persists. |
Could you please contact our support team via [email protected]? |
Same issue, downgraded to 3.1.0 and it went away |
I have the same issue, and I'm using createPaywallView so I need the 3.3 SDK... |
Same issue |
@AppleJem you can use createPaywallView with 3.1 as well |
Could you please contact our support team via [email protected], and send the Adapty logs? |
@vladd-g thanks, already contacted the team via chat |
my solution was to check if adapty is already activated using adapty.isActivated() |
@detaybey this is not a fix but a work around since there seems to be a race condition somewhere , having to call |
I ran into the same issue in both 3.3.0 and 3.3.1, but when I downgraded to 3.1.0, |
@masulo1212 we're not doing anything wrong, it's definitely a bug on Adapty side, |
any updates on this one? It's been 2 months! |
@vladd-g since it's impossible for all devs in this issue to provide a reproducer, can we connect and share screens? |
Same issue with version 3.4.0 |
Hi @visoft, could you please reach out to [email protected]? Thanks in advance! |
Did you ever find a fix @efstathiosntonas ? Having the same issue with adapty SDK 3.3.0 - 3.4.1 |
Hi @tuukkaio, we’d appreciate it if you could share some details. Could you please reach out to us at [email protected]? |
I did already @vladd-g . Just waiting to hear back. Thanks |
Description
Hi,
after upgrading to
"react-native-adapty": "3.3.0"
this error started showing up:Error: #3005 (activateOnceError): You need to be activate Adapty once
and on xcode console:
"react-native-adapty": "3.1.0"
on
index.js
:console.count('activating adapty');
logs only once so IT'S NOT DOUBLE INITed on JS side.Version
v3.3.0
What platforms are you seeing the problem on?
iOS
System info
The text was updated successfully, but these errors were encountered: