This commit is contained in:
parent
21762a2d27
commit
d2835a39de
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user