Compare commits
No commits in common. "910e9cfadf0cd876743582342799209079384690" and "9f1fc110297a0c661bf962409f7d3e797e29d70d" have entirely different histories.
910e9cfadf
...
9f1fc11029
|
@ -47,7 +47,7 @@ public class PushController : ControllerBase
|
||||||
}
|
}
|
||||||
var apnsTopic = "me.myds.ipstien.acamate.AcaMate";
|
var apnsTopic = "me.myds.ipstien.acamate.AcaMate";
|
||||||
|
|
||||||
Console.WriteLine($"{uri} || {p12FilePath}");
|
|
||||||
var pushService = new PushServiceWithP12(keysFilePath, p12FilePath, apnsTopic);
|
var pushService = new PushServiceWithP12(keysFilePath, p12FilePath, apnsTopic);
|
||||||
|
|
||||||
// 푸시 알림 전송
|
// 푸시 알림 전송
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class PushServiceWithP12
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var response = await client.PostAsync($"/3/device/{deviceToken}", content);
|
var response = await client.PostAsync($"/3/device/{deviceToken}", content);
|
||||||
|
|
||||||
if (response.IsSuccessStatusCode)
|
if (response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Push notification sent successfully.");
|
Console.WriteLine("Push notification sent successfully.");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user