forked from AcaMate/AcaMate_API
[🐛] 3차 푸시 확인
Signed-off-by: seonkyu.kim <sean.kk@daum.net>
This commit is contained in:
parent
818721f11d
commit
39beefcd37
|
@ -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