捐赠 💰
给你的观众提供一种友好的方式来感谢你。
会员 🗓️
通过提供每月或每年的会员资格来赚取经常性收入。
出售额外服务 ✨
一种提供 Zoom 通话、艺术委托和其他任何服务的新颖创意方式。
CocoaPods | Swift Package Manager |
---|---|
Swift 5.0 | Swift 5.3 |
Xcode 11.x | Xcode 12.x |
在使用此框架之前,您必须了解以下两篇 App Store 审核指南文章
- 应用程序可以使用应用内购买货币来让客户在应用程序中“打赏”数字内容提供商。
(vii) 应用程序可以允许单个用户在不使用应用内购买的情况下向另一个人赠送金钱礼物,前提是 (a) 赠送礼物完全是赠送者的可选选择,并且 (b) 100% 的资金流向礼物的接收者。但是,与接收数字内容或服务相关的任何时间点的礼物必须使用应用内购买。
UIApplicationDelegate
中导入 BuyMeACoffee 框架import BuyMeACoffee
BMCManager
共享实例,通常在您应用的 application:didFinishLaunchingWithOptions:
方法中BMCManager.shared.configure(username: "appcraftstudio")
viewDidLoad
方法以设置 BMCManager
对象的 presenting view controller。BMCManager.shared.presentingViewController = self
// You can also set a custom thank you message
BMCManager.shared.thankYouMessage = "Thank you for supporting 🎉 App Craft Studio !"
BMCButton
添加到您的 storyboard、XIB 文件,或以编程方式实例化它。要将按钮添加到您的 storyboard 或 XIB 文件,请添加一个 View 并将其自定义类设置为 BMCButton
。let configuration = BMCButton.Configuration(color: .orange, font: .cookie)
let button = BMCButton(configuration: configuration)
// or set the burtton configuration later
button.configure(with: configuration)
根据在 Buy Me a Coffee 上配置的礼物的合法接收者,App Store 审核员可能会要求实施应用内购买。
如果为您的应用程序配置了以下应用内购买,则当用户点击 BMCButton
时,它将显示为主要流程。
如果框架无法检索应用内购买信息,则将使用 web 流程作为备用方案。
转到 App Store Connect,搜索您应用的应用内购买部分,然后创建一个新的应用内购买,并包含以下信息
类型 | 消耗型 |
参考名称 | Buy Me a Coffee |
产品 ID | your.app.bundle.identifier .buymeacoffee |
已清除以供销售 | ✅ |
价格 | 等级 4 |
显示名称 | Buy Me a Coffee |
描述 | 嗨!你现在可以请我喝咖啡啦! |
促销图片 | 在此处下载 |
审核截图 | 在此处下载 |
审核说明 | Buy Me a Coffee 让客户可以在应用程序中“打赏”数字内容提供商。 |
您需要将类似于以下代码添加到您的 Podfile:pod 'BuyMeACoffee', '~> 1.0'
target 'MyApp' do
pod 'BuyMeACoffee', '~> 1.0'
end
然后在您的终端或 CocoaPods.app 中运行 pod install
。
版权所有 © 2020 App Craft Studio。保留所有权利。