02-20-2014 01:14 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:
How Pushes differentiate the client app and devices while sending Pushes.Can we use same AppID for different Applications.
i used the same AppID which i used for sample app.
Solved! Go to Solution.
02-20-2014 07:33 AM
You cannot use the same app ID across multiple applications. Please delete all applications you have created from the device, then reset the device. After this is done push may begin working.
If you continue to experience difficulties please post:
the result of your createChannel call
whether your application is running when the push is sent
the target invoke ID used in the app and in the bar-descriptor.xml file
02-21-2014 12:20 AM
02-21-2014 07:29 AM
Thanks Garett now i can receive Pushes..
Also i have one more doubt.. Once we receive Pushes Badge icon automatically added to my APP icon in home screen..Can we make that Badge not to display?? plz suggest
The spark icon is not added by Push, your app would need to add this using separate code. Remove that code and no more spark
02-21-2014 11:17 PM
02-24-2014 07:27 AM
The spark on the icon happens automatically. Out of curiosity, why don't you want it to appear on the icon?
You could try manually removing the spark using:
But that would be about the only option.
02-24-2014 07:55 AM
02-24-2014 07:57 AM
It may be best to start a new thread in the WebWorks forum as this thread is already solved and the question has veered from being push related.
I'm also less familiar with WebWorks, someone over there may be able to help. I would still suggest adding a use case to your question so folks understand the reason for not wanting the spark.
02-27-2014 12:26 AM - edited 02-27-2014 12:30 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 07:46 AM
Yes, you want to call create() every time the app launches. The PushService object, created by the create() call, is used to extract the push payload, so it's good to always have this object ready.
The createChannel() call only needs to be called the first time the app runs though.