Tor*_*llo 5 server-to-server subscription ios firebase
我需要实现服务器端逻辑,以处理苹果 iOS 订阅状态的变化https://developer.apple.com/documentation/storekit/in-app_purchase/enabling_status_update_notifications
我的问题是:
我可以用 Firebase 做到这一点吗?即我可以在firebase服务器上放置一些例如“node.js”代码来处理来自苹果服务器的消息吗?
当我使用 测试 firebase db 服务器时nscurl --ats-diagnostics https://server.com,检查它是否与苹果 ATS(https://developer.apple.com/documentation/security/preventing_insecure_network_connections)兼容,它仅在 TLSv1.3 时失败,是否足以满足苹果 ats 的要求?
编辑 26/11/2020 - 顺便说一句,我使用 Firebase 云功能成功实现了 iOS 订阅 - 所以 Firebase 是一条路。
小智 11
是的,这可以通过 Firebase 实现。您必须使用 Cloud Functions。我只在 Sandbox 环境中使用过它,但看起来它们满足 Apple 的 ATS 要求,因为所有状态更新都按预期进行。
exports.iapStatusUpdate = functions.https.onRequest((req, res) => {
//all receipt info will be in req.body
})
Run Code Online (Sandbox Code Playgroud)
将此部署到云功能后,您必须进入 App Store Connect -> 我的应用程序 -> 您的应用程序 -> App Store -> 应用程序信息,然后在“订阅状态 URL”中输入 URL,类似于https://us-central1-[your-project-id].cloudfunctions.net/iapStatusUpdate.
| 归档时间: |
|
| 查看次数: |
1823 次 |
| 最近记录: |