BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Argument is not nullable while using pish.openListener (http://www.blackberryforums.com/developer-forum/262049-argument-not-nullable-while-using-pish-openlistener.html)

annuk 10-24-2012 06:03 AM

Argument is not nullable while using pish.openListener
 
Hi ,



I am trying to register my device to blackberry server using:



blackberry.push.openBISPushListener(ops, this.onData, this.onRegister, this.onSimChange);



But i get the following error: Argument is not nullable



My code is as follows:



registerForNotifications : function() {

try {
var ops = {
port : NotificationConstants.bbPort,
appId : NotificationConstants.bbAppId,
serverUrl : NotificationConstants.bbServerUrl,
wakeUpPage : 'push.htm',
maxQueueCap : NotificationConstants.bbMax


};

console.log("BB PORT "+NotificationConstants.bbPort)
blackberry.push.openBISPushListener(ops, this.onData, this.onRegister, this.onSimChange);
} catch (err) {
alert('openBisError ' + err);
}




Where am i going wrong?

Thanks in advance.



Annuk.


All times are GMT -5. The time now is 12:18 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.