[] push 수정
All checks were successful
JJ_Back/pipeline/head This commit looks good

This commit is contained in:
김선규 2024-08-20 14:56:32 +09:00
parent 21762a2d27
commit d2835a39de

View File

@ -1,4 +1,5 @@
import apn from 'apn';
import path from 'path'; // path 모듈을 가져옵니다.
import { bundleID, apnKey, apnKeyID, apnTeamID } from '../private/config.js';
// APNs 옵션 설정
@ -24,7 +25,7 @@ export function HandlePush(req, res) {
}
const notification = new apn.Notification();
notification.topic = "your.bundle.id";
notification.topic = bundleID;
notification.expiry = Math.floor(Date.now() / 1000) + 3600;
notification.badge = Number(badge);
notification.sound = sound;