나는 코드 바 로컬 푸시 알림을 사용한다는 점에서 ionic2
을 사용하는 하이브리드 앱을 만들었습니다.
모든 것이 완벽하게 작동하는 것은 아이콘을 변경할 수 없습니다. 아래에 여기에 내 코드를 붙여 넣습니다.ionic 2 로컬 푸시 알림 아이콘을 변경하는 방법은 무엇입니까?
LocalNotifications.schedule({
id:1,
title: "Test Title",
text: "Push Notification",
icon: "res://icon.png",
at: new Date(new Date().getTime() + 5 * 1000),
sound: null,
every: "minute"
});
또한 아래 코드를 시도했습니다.
LocalNotifications.schedule({
id:1,
title: "Test Title",
text: "Push Notification",
icon: "http://icons.iconarchive.com/icons/treetog/junior/256/camera-icon.png",
at: new Date(new Date().getTime() + 5 * 1000),
sound: null,
every: "minute"
});
원격 URL을 사용하는 경우 앱이 강제로 중지됩니다. 어느 누구든지이 문제를 해결하도록 도와줍니다.
이 -https 참조를 \ : // github.com/katzer/cordova-plugin-local-notifications/wiki/04.- 당신을 도울 수있는 일정 잡기 –
나는이 링크를 어떤 방법 으로든 이미 참조했다. –
폴더 구조에'icon.png'을 어디에 넣었습니까? – Beat