Skip to content
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

Issue about getProductsIntroductoryOfferEligibility #86

Closed
cheuchheang opened this issue Sep 14, 2023 · 3 comments
Closed

Issue about getProductsIntroductoryOfferEligibility #86

cheuchheang opened this issue Sep 14, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@cheuchheang
Copy link

cheuchheang commented Sep 14, 2023

Description

Dear Adapty team,

I have a question regarding a new method that is just available in version 2.6.0 getProductsIntroductoryOfferEligibility. I would you to use it to check if the users are eligible for the trial or not, but I faced the issue:
Following the doc, using this line of codeadapty.getProductsIntroductoryOfferEligibility(products), it shows me the error as attached file. Could you check why this error happens?

Note: There are products with the trial and products without the trial
in the paywall.

code

Simulator Screen Shot - iPhone 14 Pro - 2023-09-14 at 14 10 21

@cheuchheang cheuchheang added the question Further information is requested label Sep 14, 2023
@divanc
Copy link
Collaborator

divanc commented Sep 20, 2023

Hey, @cheuchheang! How do you evaded pull request form? :D
I can see it is iOS, I bet it is ios-only, and presumably not Expo

Can you tell me your RN version?

@divanc
Copy link
Collaborator

divanc commented Sep 20, 2023

I just checked with our native dev team, we must not fire native callbacks twice, so this is not ok at all

Is this reproducible at your side? If yes, I will need your help!

We need verbose native logs to understand why function tries to return response two times.

That is done via:

  1. When you call activate, set log level to verbose like:
await adapty.activate('MY_KEY', {
  logLevel: 'verbose',
});
  1. Run your app via Xcode and open Xcode logs
  2. Try to reproduce behavior and just export the log file. You might have some confidential data there, so it is best to send it to Adapty support and just say that you are the issue guy, they'll fetch me :)

@divanc
Copy link
Collaborator

divanc commented Sep 29, 2023

I hope, your issue is resolved without our assistance by now, we will close issue and thoroughly check double responses possibilities.

Please feel free to re-open if you still experience any problem like this

@divanc divanc closed this as completed Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants