05-07-2012 06:57 AM - edited 05-07-2012 07:00 AM
hi All,
we are blocked by BIS push message. now, we have register our app and got the APP id, password, etc.
and then we are using low level API to send push message, and we can see that the message has been accepted and processing.
But from client side, we can register client to http://pushapi.eval.blackberry.com. We can not receive the push message till now. Client code as below, port and appid are false value here. Any comments are appreciated.
Also, we have found some demo application from forum. but seems the app needs to subscribed first. and it need a website which can be access from internet. But base on my understanding, for Low-level API, it should not need to subscribe.
Anyway, Any comments will be appreciated. Thanks.
int port = 31xxx;
String appId = "xxxxxxx1851";
String bpasUrl = "http://pushapi.eval.blackberry.com";
ApplicationDescriptor ad = ApplicationDescriptor
.currentApplicationDescriptor();
byte serverType = PushApplicationDescriptor.SERVER_TYPE_BPAS;
PushApplicationDescriptor pad = new PushApplicationDescriptor(appId,
port, bpasUrl, serverType, ad);
try {
PushApplicationRegistry.registerApplication(pad);
} catch (Exception e) {
update(e.toString());
}