How to test IAP (in-app purchase) in iOS Simulator OR on the Device?

后端 未结 6 1412
一向
一向 2020-12-10 00:31

I\'ve implemented a simple non-consumable in-app purchase mechanism by following the Ray Wenderlich tutorial book.

When my app starts, I initiate a product info requ

6条回答
  •  爱一瞬间的悲伤
    2020-12-10 01:11

    In iOS simulator documentation it is written :

    API Limitations

    Within iOS Simulator, there are some limitations to the APIs and features, including:

    Apple Push Services
    Privacy alerts for access to Photos, Contacts, Calendar, and Reminders
    The UIBackgroundModes key
    iCloud document syncing and key-value storage support
    

    Unsupported frameworks include:

    External Accessory
    Media Player
    Message UI 
    Event Kit
    In UIKit, the UIVideoEditorController class
    Store Kit
    

    As in-app purchase needs Store Kit to work and the Store Kit framework is unsupported for Simulator, you can't test IAP in iOS Simulator.

    More information : iOS Simulator documentation

提交回复
热议问题