Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

[iOS] requestPurchase throws 'incorrect format' error with withOffer #3059

@jeonghyerin1

Description

@jeonghyerin1

Description

When calling requestPurchase from the useIAP hook with the withOffer property included, the request fails with the following error:

[RnIap] requestPurchase failed: 올바른 포맷이 아니기 때문에 해당 데이터를 읽을 수 없습니다.

[translation]

[RnIap] requestPurchase failed: The data couldn’t be read because it isn’t in the correct format.

Describe the solution you'd like

I would like the functionality of requestPurchase with the withOffer property to be restored to how it worked in version 12.16.2.

The ideal solution would be to re-investigate the fix from issue #2715 (specifically the changes mentioned in this comment) and apply a similar, permanent fix to version 14.4.15 and future releases.


Additional Context

While I was using version 12.16.2, I encountered a similar problem described in issue #2715. I was able to fix it by applying a patch based on the solution in this comment.

After upgrading to 14.4.15, this patch was removed, and the error has returned.


Enviorment

  • react-native-iap: 14.4.15
  • react-native: 0.80.1
  • Platforms: iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions