0
안녕하세요, 저는 현재 ios pushwoosh phonegapp 앱을 만들고 있습니다. 나는이 guide 다음 오전 :Pushwoosh IOS phonegapp 코드 통합
In your onDeviceReady function add:
initPushwoosh();
bind: function() {
document.addEventListener('deviceready', this.deviceready, false);
},
deviceready: function() {
// note that this is an event handler so the scope is that of the event
// so we need to call app.report(), and not this.report()
initPushwoosh();
app.report('deviceready');
},
과 내가 같은 파일에 배치 할 필요도이 코드 도스 :
나는이 코드를 구현해야 아무 생각이 없다? 푸시 알림 수신. 폰갭 통합의 작업 예를 살펴보세요 initPushwoosh 기능
document.addEventListener('push-notification', function(event) {
var notification = event.notification;
navigator.notification.alert(notification.aps.alert);
pushNotification.setApplicationIconBadgeNumber(0);
});