iMessage Extension和In-App-purchase [英] iMessage Extension and In-App-purchase

查看:109
本文介绍了iMessage Extension和In-App-purchase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用InApp-Purchase功能为iMessage创建扩展程序。基本上我创建了一个创建两个目标的iMessage应用程序。

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


  • 你的AppTarget

  • MessageExtension

每个人都有自己的包标识符。 (扩展名有app的前缀)。现在我正在尝试为我的应用创建应用内购买。
我的应用目标没有应用内购买功能,可以将其激活,但我的分机有。在iTunes中,我的应用ID是我的应用目标。所以我应该为此定义应用程序内购买。

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.

当我收到 SKProductsResponse 时我猜是因为我的产品标识符有我的app目标前缀而不是我的扩展名前缀。
有没有实现iMessage-extension的应用内购买经验?

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 ?

推荐答案

试试这个解决方案,这个对我来说工作正常。

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

这篇关于iMessage Extension和In-App-purchase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆