02-19-2014 11:40 PM - edited 02-20-2014 12:36 AM
Hi i am new to Blackberry development.
When i tried with sample Push Initiator which comes with Push SDK and Sample Push-enabled application[Push Capture] from github i can Receive Pushes in that sample application.
But when i try the same logic in My own client application i am not receiving Pushes..
Steps I followed:
Registered with Push service and got Confirmation mail with AppID,Password and PPG url.
With those details i set to receive Pushes like:Called the create function and createChannel,success callback was called and it returned device token also. But still i am not receiving Pushes in my application.Plz help where i am lagging.
1) How Pushes differentiate the client app and devices while sending Pushes.
NOTE:i used the same AppID which i used for sample app. Can we use same App ID for different applications.
Solved! Go to Solution.
02-21-2014 02:32 PM
02-24-2014 12:10 AM
02-24-2014 03:52 PM
Hi there, with the notification it's all or nothing, you won't be able to specify where the splat shows up. I'm also not seeing a way to clear the splat through APIs; though these would make good submissions to the Developer Issue Tracker as a feature request.
That being said, the Application Icon splat is a standard part of the BlackBerry 10 experience so most users should just see it as part of the usual. For example, if I receive a Facebook notification, the Facebook icon still has the splat as well.
02-27-2014 12:23 AM - edited 02-27-2014 12:24 AM
HI i have one doubt regarding PushService object once we call the blackberry.push.PushService.create() ..
1) Launch App
2) Call blackberry.push.PushService.create()
3) PushService object is created as a result of create()
4) when i close the app and launch again, i need to again call create() ..Stuck in this point,Plz suggest.
In sample PushCapture app only once they configured and registered.So when app is closed or relaunched also they are not calling create() again and they are Receiving Pushes even when the app is closed. BUT i am not receiving Pushes when app is closed.
02-27-2014 02:21 PM
You can find a simplified push sample here:
You'll notice that the pushClient does call register on every load:
This is in order to create a proper instance of the PushService object. However, the sample does not call the registerChannel function every time (this only needs to be done once, essentially.)
In order to receive pushes while in the background, on creation we call PushService.launchApplicationOnPush:
And, when the application is launched from a background push, we actually wait for the PushService object to be instantiated before processing any pending pushes:
03-02-2014 10:57 PM