02-25-2013 06:31 AM
I'm using BB Pap service notification and I send a notification to BB client and it got the notification correctly while it's online,
But if I send a notification while the mobile was offline then back online again, no notification received.
Solved! Go to Solution.
02-25-2013 08:11 AM
You should be able to get pushes when your device is out of coverage, powered off, etc. and then is available again.
What BlackBerry OS are you using? What language is your device-side application (push-enabled application) written using?
What language is your server-side application (Push Initiator) written using?
02-28-2013 05:29 AM - last edited on 02-28-2013 08:50 AM by mdandrea
Blackberry OS is: 22.214.171.1245
device-side application language: J2ME
server-side application language: J2SE
and here after the server side code:
IdGenerator idGenerator = new IdGeneratorImpl(); Content content = new TextContent("psuh message"); List<String> addresses = new ArrayList<String>(); addresses.add("some_pin"); String systemIdentifier = "some_appid"; PushMessageControl pushMessageControl = new PushMessageControl(true, idGenerator,systemIdentifier , addresses); PapService papService = new PapServiceImpl(); PushSDKProperties pushSDKProperties = new PushSDKPropertiesImpl(); pushSDKProperties.setPublicPpgAddress("https://cpxxxx.pushapi.eval.blackberry.com/mss/PD_
pushRequest"); pushSDKProperties.setHttpIsPersistent(true); pushSDKProperties.setHttpConnectionTimeout(60000); pushSDKProperties.setHttpReadTimeout(120000); HttpClientImpl httpClient = new HttpClientImpl(); httpClient.setPushSDKProperties(pushSDKProperties) ; papService.setHttpClient(httpClient); papService.setPushSDKProperties(pushSDKProperties) ; pushResponse = papService.push(systemIdentifier, "some_password", systemIdentifier, pushMessageControl, content);
02-28-2013 08:58 AM
Just for future reference, try to avoid putting your device PIN, appid, password, and full PPG URL in your forum post.
From your sample code, it looks like you were missing the initial "cp" right after https:// and before your content provider ID.
The publicPPGAddress needs to be of the following form:
Let me know if that helps.