我正在开发一个Expo / React Native应用,并且expo-sentry
目前不支持Sentry.showReportDialog()
。因此,我认为我需要直接致电User Feedback API endpoint。
我这样做是出于以下目的:
curl 'https://sentry.io/api/0/projects/saad-quadri/test/user-feedback/' --request 'POST' --header 'Authorization: Bearer <my-auth-token>' --header 'Content-Type: application/json' --data '{"comments":"there is an issue with the app","email":"johnsmith@gmail.com","event_id":"1234abcd","name":"John Smith"}'
我以为它起作用了,因为它返回了JSON响应,如下所示:
{
"eventID": "1234abcd",
"name": "John Smith",
"event": { "eventID": "1234abcd", "id": null },
"user": null,
"dateCreated": "2018-12-26T22:01:40.883Z",
"issue": null,
"id": "443876",
"comments": "there is an issue with the app",
"email": "johnsmith@gmail.com"
}
但是,它没有显示在用户反馈标签中:
我确定它指向正确的项目,并且细节正确,因为错误报告确实有效:
任何帮助将不胜感激,谢谢!