Android delivery / opened not getting updated

Comments

7 comments

  • Avatar
    Gayview Mahat

    Hi! What is your app code? Have you tried contacting our support team regarding the issue?

  • Avatar
    divyenduz

    I am in touch with the support. And the issue got resolved. I will document and post a answer here (for community use) once things are tested.

    Thanks

  • Avatar
    Gayview Mahat

    Glad to hear it, thanks for your reply!

  • Avatar
    Gayview Mahat

    Hello! Were you able to test the solution suggested? Is the statistics being collected fine now?

  • Avatar
    divyenduz

    Yes, we just moved our code to production. Statistics looks to be working better. Will have a look for a while before documenting.

  • Avatar
    divyenduz

    We had some business case where we had to extend PushGCMIntentService and roll out our own version. If this is done, the pushStat API request is not sent and has to be manually sent as follows (it should be executed on opening the push notification):

    String hash = b.getString("p");
    PushStatRequest request = new PushStatRequest(hash);
    RequestManager.sendRequest(MainApplication.getContext(), request);
    

    Here, "b" is a bundle received when a push notification is received by device. This is a manual way of sending the pushStat request.

    Also, the support guys recommended that using custom intent services will not be available with the upcoming updates of Pushwoosh SDK. Therefore, developers are recommenced to use the notification factory functionality with the following classes:

    com.arellomobile.android.push.utils.notification.AbsNotificationFactory com.arellomobile.android.push.utils.notification.DefaultNotificationFactory

    1) Inherit from the AbsNotificationFactory/DefaultNotificationFactory;

    2) Redefine method onGenerateNotification and add there a customization code;

    3) Call the PushManager.setNotificationFactory, passing your factory there.

    Note that the factory should have a constructor without any arguments since when a push comes to a closed app a new instance of NotificationFactory is being created.

  • Avatar
    divyenduz

    @Benedict I have documented the scenario. Please have a look and let me know if I can make it better in any way.

Please sign in to leave a comment.