无法从iTunes Connect接收有关IAP状态更改事件的通知 [英] Trouble receiving notifications from iTunes Connect about IAP status change events

查看:228
本文介绍了无法从iTunes Connect接收有关IAP状态更改事件的通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的服务器上设置了一个URL,以便根据本文接收可自动更新的IAP状态更改通知:

I've set up a URL on my server to receive auto-renewable IAP status change notifications per this article:

https://help.apple.com/itunes-connect/developer/#/dev0067a330b

我当然通过我的应用程序的主设置页面将我的URL提供给iTunes Connect。

And of course I've provided my URL to iTunes Connect via my app's main settings page.

但是,我是既不接收更新通知也不接收任何表明存在问题的消息。

However, I'm receiving neither update notifications nor any kind of message indicating that there's a problem.

帮助排除故障?我甚至不知道从哪里开始。

Help troubleshooting? I don't even know where to start.

谢谢!

推荐答案

<你有没有检查过服务器的安全网络连接?我的意思是你必须检查服务器上的ATS。我正在使用nginx,如代理服务器。首先,您必须使用ATS检查您的nginx系统对,以便与Apple服务器连接。

Have you checked secure network connection with your server? I mean that you have to check ATS on your server. I'm using nginx such as proxy server. First of all, you have to check your nginx system pair past with ATS to connect with apple server.

这种检查ATS传递nginx服务器的方法

This method to check ATS pass on nginx server

nscurl --ats-诊断<您的状态接收网址>

查看有关Apple文档的更多信息使用nscurl工具诊断ATS连接问题

See more on apple documentation Using the nscurl Tool to Diagnose ATS Connection Issues

如果你的服务器通过了。您已准备好接收来自Apple的回复。

If your server passed. You are ready to receive response from apple.

我的订阅状态网址设置简单,例如创建简单的http服务on nodejs(express framwork)

My subscription status URL setup simple such as a simple http service created on nodejs ( express framwork )

const express = require('express')
const app = express()
const bodyParser = require('body-parser');
const path = require('path');

process.on('uncaughtException', function (err) {
    console.log(err.stack);
});

process.on('exit', function (code) {
    console.log('About to exit with code: ' + code);
});

// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))

// parse application/json
app.use(bodyParser.json())

app.post('/', function (req, res) {
    console.log(req.body); < response from apple is here >

    res.send({ ok: 1 });
})

const port = 12092;

app.listen(port, function () {
    console.log('Subscription status url ping on port ' + port);
});

顺便说一下,你应该更新你的问题。你可以在你的问题上引用其他关系问题。这更有帮助!

By the way, you should update your question. you can reference from a other relation question on your question. This's more helpful!.

这篇关于无法从iTunes Connect接收有关IAP状态更改事件的通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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