Custom notifications in Android

Comments

3 comments

  • Avatar
    Roberto Alvarez Ceballos

    I was wondering the exact same thing. I need to display different type of layouts for my notifications and I can't find the way of doing it with this library.

  • Avatar
    Gayview Mahat

    Hi Roberto, you might try to create a custom intent service inherited from our "PushGCMIntentService":

    If you need to handle custom notifications from your server, you should create a class extended from com.arellomobile.android.push.PushGCMIntentService, and include this custom intent service under the “PW_PUSH_SERVICE” tag in your manifest file.

  • Avatar
    iainconnor

    I assume you're suggesting overriding the com.arellomobile.android.push.PushGCMIntentService#onMessage method, yes? How are we supposed to know what gets done internally in that method that we need to sync with to ensure things like delivery status' are handled properly, since PushWoosh chose to close off it's source code?

    Just as an example, without decompiling the source code, how would one know that com.arellomobile.android.push.PushGCMIntentService#onMessage calls com.arellomobile.android.push.PushServiceHelper#generateNotification which calls com.arellomobile.android.push.DeviceFeature2_5#sendMessageDeliveryEvent which I assume does something to sync the delivered status of those messages. Without doing this, wouldn't the stats be off.

Please sign in to leave a comment.