transition from Analysis I was stuck having failed to override the PushBots notification creation code, as I did with the getNotification
function in ParsePushBroadcastReceiver
. My project requires multi-line and separate push notifications, but the default PushBots behavior is to show single-line and group notifications for the application.
I tried to cancel the notification in the BroadcastReceiver
( PBConstants.EVENT_MSG_RECEIVE
event) onReceive
function, so I could create and display my own push, but I do not know that the notification identifier and CancelAll()
did not work (it would also be a bad idea).
Pushbots.sharedInstance()
has a setNotificationBuilder
function that accepts a PBGenerate
object, but I have no idea how to build it correctly and if it really helps my cause.
Could not find the documentation and get a response from the support, so ask here, maybe someone knows a solution or a workaround for this problem.
Here's how recipients are defined in AndroidManifest.xml
<receiver android:name="com.pushbots.google.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> <category android:name="com.my.app" /> </intent-filter> </receiver> <receiver android:name="com.my.app.MyPushReceiver" /> <service android:name="com.pushbots.push.GCMIntentService" />
Thank you in advance!
source share