gpt4 book ai didi

ios - 解析仪表板设置

转载 作者:可可西里 更新时间:2023-11-01 02:16:29 26 4
gpt4 key购买 nike

我在 Heroku 上使用 Parse Server Dashboard 和我的 iOS 应用程序,我想配置推送通知。我知道我可以在 App Settings 中配置它,但在仪表板中我只能看到 Core 和 Push。在在线屏幕截图上,我看到还有另一个选项卡,但在我的仪表板中没有显示。

enter image description here

我错过了什么吗?

感谢您的帮助!

最佳答案

现在我们必须使用 Parse Server,更改推送等应用程序设置的方式有所不同。以前,它内置在他们的仪表板界面中,但现在您必须在 index.js 文件中手动输入该信息。引用this文章,它应该是这样的:

var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: 'MYAPPID',
clientKey: 'myclientKey',
masterKey: 'myMasterKey',
push: {
android: {
senderId: '', // The Sender ID of GCM
apiKey: '' // The Server API Key of GCM
},
ios: {
pdx: 'certs/mycert.p12', // the path and filename to the .p12 file you exported earlier.
bundleId: '', // The bundle identifier associated with your app
production: true
}
}
});

您必须自己从每个提供者那里获取证书信息,并且只需将 .p12 证书文件包含在您的 index.js 附近的某处,您就成功了。

关于ios - 解析仪表板设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38020451/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com