Hi Im trying to test and the issue is that the emulator is not running past the splash screen since I updated today. Im getting the following error:
/Users/stephangrobler/Desktop/ubuntu/www/vetapp/platforms/ios/Vet360/Plugins/com.pushwoosh.plugins.pushwoosh/ios/PushNotification.h
/Users/stephangrobler/Desktop/ubuntu/www/vetapp/platforms/ios/Vet360/Plugins/com.pushwoosh.plugins.pushwoosh/ios/PushNotification.h:50:9: 'ALog' macro redefined
/Users/stephangrobler/Desktop/ubuntu/www/vetapp/platforms/ios/Vet360/Plugins/com.pushwoosh.plugins.pushwoosh/ios/PushNotification.m:322:101: Implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'int'
Now Im not an IOS dev and have no clue as to what can be causing this issue.
I have cordova-ios@3.9.1, have the whitelist plugin with the access tag in the config xml.
Below is my log on startup that I get from xcode:
2015-08-29 00:42:05.921 Vet360[16247:100053] Pushwoosh: Initializing application runtime
2015-08-29 00:42:06.041 Vet360[16247:100053] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2015-08-29 00:42:06.047 Vet360[16247:100053] Apache Cordova native platform version 3.9.1 is starting.
2015-08-29 00:42:06.047 Vet360[16247:100053] Multi-tasking -> Device: YES, App: YES
2015-08-29 00:42:06.049 Vet360[16247:100053] Unlimited access to network resources
2015-08-29 00:42:06.152 Vet360[16247:100053] [CDVTimer][keyboard] 0.052989ms
2015-08-29 00:42:06.185 Vet360[16247:100053] [CDVTimer][splashscreen] 32.831013ms
2015-08-29 00:42:06.185 Vet360[16247:100053] [CDVTimer][TotalPluginStartup] 33.157051ms
2015-08-29 00:42:06.196 Vet360[16247:100053] Will show push notifications alert
2015-08-29 00:42:06.213 Vet360[16247:100088] Sending request: {"request":{"language":"en","application":"","userId":"7E202B02-5050-4DCD-BC8C-7299F348935A","v":"3.0.2.370","hwid":"7E202B02-5050-4DCD-BC8C-7299F348935A"}}
2015-08-29 00:42:06.213 Vet360[16247:100088] To urL https://cp.pushwoosh.com/json/1.3/getInApps
2015-08-29 00:42:06.287 Vet360[16247:100105] Sending request: {"request":{"application":"","userId":"7E202B02-5050-4DCD-BC8C-7299F348935A","v":"3.0.2.370","hwid":"7E202B02-5050-4DCD-BC8C-7299F348935A"}}
2015-08-29 00:42:06.291 Vet360[16247:100105] To urL https://cp.pushwoosh.com/json/1.3/registerUser
2015-08-29 00:42:06.302 Vet360[16247:100053] Resetting plugins due to page load.
2015-08-29 00:42:06.303 Vet360[16247:100107] Sending request: {"request":{"application":"","userId":"7E202B02-5050-4DCD-BC8C-7299F348935A","v":"3.0.2.370","hwid":"7E202B02-5050-4DCD-BC8C-7299F348935A"}}
2015-08-29 00:42:06.303 Vet360[16247:100107] To urL https://cp.pushwoosh.com/json/1.3/applicationOpen
2015-08-29 00:42:07.425 Vet360[16247:100088] Response "200 no error": string: {"status_code":210,"status_message":"Application not found","response":null}
2015-08-29 00:42:07.842 Vet360[16247:100105] Response "200 no error": string: {"status_code": 210, "status_message": "Request format is not valid."}
2015-08-29 00:42:07.863 Vet360[16247:100107] Response "200 no error": string: {"status_code":210,"status_message":"Application not found","response":null}
2015-08-29 00:42:07.863 Vet360[16247:100107] sending appOpen failed
2015-08-29 00:42:08.834 Vet360[16247:100053] Finished load of: file:///Users/stephangrobler/Library/Developer/CoreSimulator/Devices/D760AB3D-513D-4D73-8DEB-2FF075E4140B/data/Containers/Bundle/Application/F0ECB39D-BE11-4C1D-9274-9B470E062B67/Vet360.app/www/index.html#/app/cpd/training/1871
2015-08-29 00:42:09.052 Vet360[16247:100053] Google Analytics Started
2015-08-29 00:42:09.053 Vet360[16247:100053] navigator.geolocation works well
If I say that I deleted and installed the platform 20 times, I am not joking, and from all the uninstalls and reinstalls this seems to be the culprit.
My Code to run it is as follows:
function initIosPushwoosh() {
if (angular.isUndefined(window.plugin)){
return false;
}
// var pushNotification = window.plugins.pushNotification;
var pushNotification = cordova.require("com.pushwoosh.plugins.pushwoosh.PushNotification");
//set push notification callback before we initialize the plugin
document.addEventListener('push-notification', function(event) {
//get the notification payload
var notification = event.notification;
//display alert to the user for example
//clear the app badge
pushNotification.setApplicationIconBadgeNumber(0);
});
//initialize the plugin
pushNotification.onDeviceReady({pw_appid:"qqqqq-qqqqq"});
//register for pushes
pushNotification.registerDevice(
function(status) {
var deviceToken = status.deviceToken;
console.warn('registerDevice: ' + deviceToken);
},
function(status) {
console.warn('failed to register : ' + JSON.stringify(status));
}
);
//reset badges on app start
pushNotification.setApplicationIconBadgeNumber(0);
}
Hi Im trying to test and the issue is that the emulator is not running past the splash screen since I updated today. Im getting the following error:
Now Im not an IOS dev and have no clue as to what can be causing this issue. I have cordova-ios@3.9.1, have the whitelist plugin with the access tag in the config xml.
Below is my log on startup that I get from xcode:
If I say that I deleted and installed the platform 20 times, I am not joking, and from all the uninstalls and reinstalls this seems to be the culprit.
My Code to run it is as follows: