Closed int3rnet closed 7 years ago
moreover there is an error in xcode debug
2017-04-03 12:08:15.862 Ajeer-Client[2257:1030110] ERROR: Method 'getPushHistory:' not defined in Plugin 'PushNotification' 2017-04-03 12:08:15.862 Ajeer-Client[2257:1030110] -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = ["PushNotification1858525230","PushNotification","getPushHistory",[]]
getPushHistory() is supported only on Android.
@DimanAM so what's my choices for ios and getting the push history?
Hello dear in pushwoosh
i have a code below to get the pushwoosh history for the device , i copied the code from pushwoosh documentation and try to call it but nothing happen , i called the function two times and same problem
below the code and there is a comment for the two times call
` var n
function onPushwooshInitialized(pushNotification) {
}
function initPushwoosh() {
}
var app = { // Application Constructor initialize: function() { this.bindEvents(); }, // Bind Event Listeners // // Bind any events that are required on startup. Common events are: // 'load', 'deviceready', 'offline', and 'online'. bindEvents: function() { document.addEventListener('deviceready', this.onDeviceReady, false); }, // deviceready Event Handler // // The scope of 'this' is the event. In order to call the 'receivedEvent' // function, we must explicity call 'app.receivedEvent(...);' onDeviceReady: function() { initPushwoosh(); app.receivedEvent('deviceready'); }, // Update DOM on a Received Event receivedEvent: function(id) { var parentElement = document.getElementById(id);
};
app.initialize();`