Merge pull request '[🐛] 3차 푸시 확인' (#8) from seonkyu.kim/AcaMate_API:main into debug
All checks were successful
Back/pipeline/head This commit looks good
All checks were successful
Back/pipeline/head This commit looks good
Reviewed-on: https://git.ipstein.myds.me/AcaMate/AcaMate_API/pulls/8
This commit is contained in:
commit
910e9cfadf
|
@ -47,7 +47,7 @@ public class PushController : ControllerBase
|
|||
}
|
||||
var apnsTopic = "me.myds.ipstien.acamate.AcaMate";
|
||||
|
||||
|
||||
Console.WriteLine($"{uri} || {p12FilePath}");
|
||||
var pushService = new PushServiceWithP12(keysFilePath, p12FilePath, apnsTopic);
|
||||
|
||||
// 푸시 알림 전송
|
||||
|
|
|
@ -57,7 +57,7 @@ public class PushServiceWithP12
|
|||
try
|
||||
{
|
||||
var response = await client.PostAsync($"/3/device/{deviceToken}", content);
|
||||
|
||||
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
Console.WriteLine("Push notification sent successfully.");
|
||||
|
|
Loading…
Reference in New Issue
Block a user