react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

iOS Offer codes

Open benglasgow opened this issue 2 years ago • 6 comments

Discussed in https://github.com/dooboolab-community/react-native-iap/discussions/2697

Originally posted by benglasgow March 2, 2024 I read through the app store connect docs on how to set up an offer code, but I'm still confused on how to properly set up and use offer codes for a subscription.

I was able to get promo codes working and introductory codes working, but I'm looking to specifically set up offer codes.

My questions are:

1.) Do I use presentCodeRedemptionSheetIOS? If so, why do I keep getting an error that looks like this?

image

2.) If I don't use a redemption sheet, what do I use to redeem offer codes?

3.) Is there some step that's not intuitive/documented that I might be missing when it comes to setting this up? I have the offer code set up in app store connect, and I also have a custom code created for offer code.

I'd be happy to do some documenting to help people out with this in the future if that's helpful.

Any and all help is welcome.

Thank you!

benglasgow avatar Mar 20 '24 00:03 benglasgow

Discussed in #2697

Originally posted by benglasgow March 2, 2024 I read through the app store connect docs on how to set up an offer code, but I'm still confused on how to properly set up and use offer codes for a subscription.

I was able to get promo codes working and introductory codes working, but I'm looking to specifically set up offer codes.

My questions are:

1.) Do I use presentCodeRedemptionSheetIOS? If so, why do I keep getting an error that looks like this?

image

2.) If I don't use a redemption sheet, what do I use to redeem offer codes?

3.) Is there some step that's not intuitive/documented that I might be missing when it comes to setting this up? I have the offer code set up in app store connect, and I also have a custom code created for offer code.

I'd be happy to do some documenting to help people out with this in the future if that's helpful.

Any and all help is welcome.

Thank you!

Same here.. any solution to this??

wait how did you get promo codes working.. #2715

sharukhrahman97 avatar Aug 16 '24 06:08 sharukhrahman97

Hi !

Did you find a solution ?

mathysFor avatar Sep 07 '24 16:09 mathysFor

Discussed in #2697

Originally posted by benglasgow March 2, 2024 I read through the app store connect docs on how to set up an offer code, but I'm still confused on how to properly set up and use offer codes for a subscription.

I was able to get promo codes working and introductory codes working, but I'm looking to specifically set up offer codes.

My questions are:

1.) Do I use presentCodeRedemptionSheetIOS? If so, why do I keep getting an error that looks like this?

image

2.) If I don't use a redemption sheet, what do I use to redeem offer codes?

3.) Is there some step that's not intuitive/documented that I might be missing when it comes to setting this up? I have the offer code set up in app store connect, and I also have a custom code created for offer code.

I'd be happy to do some documenting to help people out with this in the future if that's helpful.

Any and all help is welcome.

Thank you!

Hi! I am also getting this issue. Any solution of this ?

vorarohan avatar Mar 12 '25 13:03 vorarohan

Same here - Any Updates or Solutions ?

katche70 avatar Jun 06 '25 08:06 katche70

Same here - Any Updates or Solutions ?

You can test offer codes using .storekit file.

You have to add .storekit file from Xcode and also you have to select that file from scheme>Edit scheme>Option tab>Storekit Configuration>Select that .storekit file and than you can testing that offer codes in development mode.

And yes, This is only for development mode for test, while in Production mode when app is install from AppStore it is not needed, offercodes will directly work with app store connect, so don't forget to remove that selected file to "none" when you make production build or etc.

vorarohan avatar Jun 06 '25 09:06 vorarohan

Ok. Thank you

katche70 avatar Jun 06 '25 15:06 katche70

I’m closing all issues reported in versions below 14, as the library now supports the new architecture with NitroModules and has been completely revamped.

hyochan avatar Sep 30 '25 18:09 hyochan