gorush
gorush copied to clipboard
add request logs for iOS:APNs and Android:FCM
APNs and FCM Api request logs added to see which requests are going to APNs And FCM servers
Example:
- [x] request going gorush:
{
"notifications": [
{
"platform": 1,
"priority": "high",
"tokens": [
"**********4wAABp_BOYhKWWMLfSF9GV52UO_rYvBoKbQuuuI6HWSfLdG7_t-ZhA2_Zg47BpQbzBegmHUxovPTp3rU0xajPAfnz9IkOb**********"
],
"content_available": true,
"category": "CONFIRM",
"sound": {
"critical": 1,
"name": "default",
"volume": 1
},
"alert": {
"body": "iOS UAT başarılı bildirim geldi"
},
"data": {
"customerNo": 12345,
"languageCode": "tr",
"specificCharText": "denemee"
}
}
]
}
- [ ] request going APNS: (We need this)
{
"aps": {
"alert": {
"body": "iOS UAT başarılı bildirim geldi"
},
"category": "CONFIRM",
"content-available": 1,
"sound": {
"critical": 1,
"name": "default",
"volume": 1
}
},
"customerNo": 12345,
"languageCode": "tr",
"specificCharText": "denemee"
}
Codecov Report
Merging #639 (78698fa) into master (9d47494) will decrease coverage by
0.15%
. The diff coverage is31.57%
.
@@ Coverage Diff @@
## master #639 +/- ##
==========================================
- Coverage 65.05% 64.89% -0.16%
==========================================
Files 21 21
Lines 1783 1792 +9
==========================================
+ Hits 1160 1163 +3
- Misses 562 564 +2
- Partials 61 65 +4
Impacted Files | Coverage Δ | |
---|---|---|
notify/notification_hms.go | 4.38% <0.00%> (ø) |
|
notify/notification_apns.go | 86.30% <40.00%> (-0.99%) |
:arrow_down: |
notify/notification_fcm.go | 70.21% <40.00%> (-1.12%) |
:arrow_down: |
storage/redis/redis.go | 70.37% <100.00%> (-0.37%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 9d47494...78698fa. Read the comment docs.
@appleboy can you approve this? It is helpful for debugging