01-11-2012 01:51 PM
Hi.
When I send a push message to "push_all" I get "No Active Subscribers for the Push Service" (a server side)
Client side.
I've tried:
1. A code from http://supportforums.blackberry.com/t5/BlackBerry-
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
2. Without a registration - doesn't work.
3. Using net.rim.blackberry.api.push.
public class BlackBerryPush extends UiApplication implements PushApplication {
PushApplicationDescriptor pad;
public static void main(String[] args) {
BlackBerryPush theApp = new BlackBerryPush();
theApp.enterEventDispatcher();
}
public BlackBerryPush() {
pad = new PushApplicationDescriptor(Port);
pad.setAppId(APP_ID);
byte b = PushApplicationRegistry.getStatus(pad).getStatus()
if ( b != PushApplicationStatus.STATUS_ACTIVE || b != PushApplicationStatus.STATUS_PENDING ) {
try {
PushApplicationRegistry.registerApplication(pad);
}catch(Exception e) {}
}
}
public void onMessage(PushInputStream inputStream, StreamConnection conn) {
}
public void onStatusChange(PushApplicationStatus status) {
//Here I get STATUS_ACTIVE
}
}
I've tried to set all settings for a PushApplicationDescriptor. But a result the same.
Please, Help!
01-11-2012 08:56 PM
Sounds like you are using the server-side push SDK. In that case you must subscribe from the sample application on the device to the push service registered with the server-side SDK you are hosting somewhere on one of your servers.
Also, try using Push Essentials to start off with instead of Push Plus.
01-12-2012 01:09 PM - last edited on 01-12-2012 01:22 PM
I'm using Push Essentials.
I'm using a server code from http://supportforums.blackberry.com/t5/BlackBerry-
The main question - how to register my app. on a push server?
Why a registration doesn't work with net.rim.blackberry.api.push?
01-12-2012 06:47 PM
Oh I thought you were using the SDK based on the error message you got about no active subscribers.
Ok, so what client application are you using?
Yes, using the net.rim.blackberry.api.push will register you with the BlackBerry Push Server.
01-13-2012 06:35 AM
As I wrote in a first post I've tried a code from http://supportforums.blackberry.com/t5/BlackBerry-
01-13-2012 06:43 AM
Response from server:
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1
01-14-2012 09:04 AM