iMessage Extension and In-App-purchase

妖精的绣舞 提交于 2019-12-06 07:49:13

问题


I'm trying to create an extension for iMessage with InApp-Purchase feature. basically I created an iMessage application which create two target.

  • Your AppTarget
  • MessageExtension

and each one has it's own bundle identifier. ( extension has a prefix of app ). now i am trying to create to in-app-purchase for my app. My app target does not have in-App purchase capability to make it active but my extension has. In iTunes connect my app id is my app target. so i should define in-app purchase for that.

by end of the day when i am getting SKProductsResponse its empty and i guess because my product identifier has my app target prefix and not my extension prefix. has anybody experience in implementing of in-app-purchase for iMessage-extension ?


回答1:


Try this solution, this is working fine for me.

com.company.application -> Your application target bundle

com.company.application.extension -> Your iMessage target bundle

com.company.application.extension.purchase_id_1 -> In-App identifier


来源:https://stackoverflow.com/questions/39358743/imessage-extension-and-in-app-purchase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!