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

Access to freeTrialPeriodAndroid for Android subscriptions #2501

Open
exzos28 opened this issue Jul 24, 2023 · 2 comments
Open

Access to freeTrialPeriodAndroid for Android subscriptions #2501

exzos28 opened this issue Jul 24, 2023 · 2 comments

Comments

@exzos28
Copy link

exzos28 commented Jul 24, 2023

Description

I am in the process of upgrading react-native-iap from version ^7.5.0 to version ^12.10.5, and I found that freeTrialPeriodAndroid is no longer available for use. Also, I didn't find any mention in the source code that refers to the free or trial field.
I also tried to create a subscription that should have a trial period, but it didn't return in the getSubscriptions response.

I've seen this Issue, but it didn't work for me.

Expected Behavior

Able to get free trial period on android

Environment:

  • react-native-iap: 12.10.5
  • react-native: 0.70.8
  • Platforms (iOS, Android, emulator, simulator, device):
@exzos28
Copy link
Author

exzos28 commented Jul 24, 2023

Also missing is any mention of trial or free in src/types. Which field is now responsible for this?

@Shaw-Signaturize
Copy link
Contributor

I found the same but in IOS. Although the type existed it wasn't linking on the map.

#2471

I have added a suggested fix for IOS if something similar may help for an android version of the fix. Unable to debug into it as I do not have an available android device.

PS: do not click the response link as it is currently under report to github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants