Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification behavior after removing app task #18

Open
Arkadzi opened this issue Apr 15, 2020 · 25 comments
Open

Notification behavior after removing app task #18

Arkadzi opened this issue Apr 15, 2020 · 25 comments

Comments

@Arkadzi
Copy link

Arkadzi commented Apr 15, 2020

Steps:
1.Receive infobip notification
2.press home button
3.swipe app from tasks
4.notification remains visible (behaves like ongoing notification)
5.clicking on notification.
6.broadcast receiver has explicit intent for custom activity. after click nothing happens for few seconds, then launch activity appears (not the one explicitely intented), without any data.
There must be some behavior either to make notification cancel after task removed, and then show it again after app launch, or behavior for running explicitely intented activity.
Help please.

@tjuric
Copy link
Member

tjuric commented May 6, 2020

Hi @Arkadzi,
Sorry for the late response. We're checking the issue and will get back to you soon with the answer.

@pratikkukadia
Copy link

pratikkukadia commented Mar 31, 2021

Hello @tjuric,

Facing the similar issue and able to get the callback on BroadcastReceiver on tapping on the Notification after killing the app from the background.

Steps:

  1. Receive infobip notification
  2. press home button
  3. swipe app from tasks
  4. notification remains visible (behaves like ongoing notification)
  5. clicking on notification.
  6. On receive method of broadcast receiver is not called and the notification gets dismiss. So user gets stucks and not able to
    navigate to the application.

Help please on this scenario.

In AndroidManifest

<receiver
            android:name=".receiver.NotificationReceiver"
            android:exported="false">
            <intent-filter>
                <action android:name="org.infobip.mobile.messaging.NOTIFICATION_TAPPED" />
            </intent-filter>
        </receiver>

For some device like Realme Version 8.1, OnePlus 6, OnePlus 7T Pro Version 11 this broadcast receiver not getting trigger when application is killed from the background after receiving the notification and tapping on the notification which is visible in the notification tray.

@riskpp
Copy link
Contributor

riskpp commented Mar 31, 2021

Hi @pratikkukadia, we will check it soon, thank you for reporting.

BR,
Olga

@riskpp
Copy link
Contributor

riskpp commented Mar 31, 2021

Hi @pratikkukadia , we checked the scenario on available devices and on different Android API versions, and can't reproduce it.

We used our deeplinking example for testing, just put logging at the beginning of the onReceive method and it's always presented in logcat.

May be you could test it like this, or may be provide some specific Android API version, where we could reproduce it?

In addition, for default notifications we use default priority channel option and don't use setOngoing, so notifications shouldn't behave like persistent notifications.

BR,
Olga

@riskpp
Copy link
Contributor

riskpp commented Mar 31, 2021

Could you please send your NotificationSettings, it could also help us to reproduce issue.

BR, Olga

@pratikkukadia
Copy link

pratikkukadia commented Apr 1, 2021

Hi @riskpp, below is the NotificationSettings

NotificationSettings.Builder(this)
                            .withMultipleNotifications()
                            .withDefaultIcon(R.drawable.ic_stat_notification)
                            .withColor(ContextCompat.getColor(this, R.color.colorAccent))
                            .build()

Infobip Sdk version : 4.3.1@aar.

The issue is of specific Realme Version 8.1, OnePlus 6, OnePlus 7T Pro Version 11 devices. I am having the Samsung device and it's working fine in that device.

So can you please check in the specific devices mention and also let me know in which devices have to tested the above scenario.

Thanks,
Pratik

@riskpp
Copy link
Contributor

riskpp commented Apr 1, 2021

Hi @pratikkukadia , while we are trying to find some of the devices you mentioned, could you please check do you also have such issue in our demo app from google play?

For now looks like the issue can be connected with

BR, Olga

@riskpp
Copy link
Contributor

riskpp commented Apr 2, 2021

Hi @pratikkukadia, we checked the scenario on OnePlus 7 Pro and the issue isn't reproduced on our demo app.

BR, Olga

@pratikkukadia
Copy link

Hi @riskpp, we have tested in OnePlus 7T Pro by installing your the demo app from google play?
The issue is reproduced. We have recorded the video for your reference.

Please let us know if you need anything else.

PFA

21-04-21-18-34-34.mp4

@riskpp
Copy link
Contributor

riskpp commented Apr 22, 2021

Hi @pratikkukadia
Could you please clarify, which Android version do you have on that device?

BR,
Olga

@pratikkukadia
Copy link

Hi @riskpp
The Android version on OnePlus 7T Pro is version 11.

@riskpp
Copy link
Contributor

riskpp commented Apr 26, 2021

Hi @pratikkukadia, we again tried to reproduce it on OnePlus 7 Pro after updating it to Android 11 with different battery optimization settings and closest thing we got is that, after we tapped on notification, app is opened after delay for 30sec-1min.
In logs also nothing interesting was found, just previous process died and new one created with delay.
Could you check, if after tapping on notification you will wait during 1 min, will application be opened or not?
The exact case you mentioning we can't reproduce unfortunately.

BR, Olga

@pratikkukadia
Copy link

pratikkukadia commented Apr 30, 2021

Hi @riskpp, I have tried the steps you have mention and waited for about 1 and half mins but still the app does not get open.
For your reference I have record a video for the same and attached it.

Please lets us know if u need anything else.

https://drive.google.com/file/d/1cIAI6EkTLrDxc66wslW8HPZRK-dXzjv9/view?usp=sharing

@riskpp
Copy link
Contributor

riskpp commented May 5, 2021

Hi @pratikkukadia,
Could you please send us screenshots of your settings in

  1. System > Developer options
  2. Settings > Battery > Battery optimization > <Select Application> Infobip Push

Hopefully it'll help us investigate this.

BR,
Olga

@pratikkukadia
Copy link

Hi @riskpp ,

Please find the attached screenshots of OnePlus 7T Pro

Screenshot_20210507-184026
Screenshot_20210507-183940

@hpatel123
Copy link

Hi @riskpp We are waiting for an update from you. Can you please provide it ?

Thanks

@riskpp
Copy link
Contributor

riskpp commented Jun 30, 2021

Hi @hpatel123,

Unfortunately screenshots, you provided, didn’t help us to investigate the issue, for similar settings in our device infobip’s showcase application opens after tapping on notification (sometimes after delay). You could send us heap dump of the app after notification tapped, may be it could help.

BR, Olga

@hpatel123
Copy link

Hi @riskpp we have provided video of issue along with device settings screenshots. Now your team has to debug it with the same device.

Note that in your sample application it is not working so you must look into this.

@riskpp
Copy link
Contributor

riskpp commented Jun 30, 2021

Thank you for the video, we definitely saw it, and debugged our showcase on exactly the same device with the same Android OS version (OnePlus 7 Pro with Android 11), but the closest thing we got is that after we tapped on notification app is opened after delay for 30sec-1min.
Only thing we could propose you now is to get heap dump from your device when you tap on notification. Other idea of ours is to try to find one more device with the same settings and try to reproduce it. We will also try to reproduce it on another OnePlus 7 Pro with Android 11 device.

Just in case, if you didn’t try to restart the device, try it please.

BR, Olga

@hpatel123
Copy link

Hi @riskpp Can you please post the video which shows that the notification tapping works fine even application is in kill mode ? Also please post the screenshots of device which shows Android version.

It would help us.

@riskpp
Copy link
Contributor

riskpp commented Jul 1, 2021

Hi @hpatel123, video and screenshot:

OnePlus7_Android11.mp4

OnePlus7_Android11

@tjuric
Copy link
Member

tjuric commented Nov 23, 2021

Is this issue still relevant, @hpatel123?

@hpatel123
Copy link

@tjuric Looks like similar issue. We can still reproduce this issue.

@pankaj89
Copy link

@tjuric Is there any update on this?, still we are facing this issue when tapping on notification nothings happens.
Device : Redmi9i with Android Version-10
Version : 6.2.0

@riskpp
Copy link
Contributor

riskpp commented Nov 17, 2022

Hi @pankaj89 unfortunately we are unable to reproduce the issue, you could try disable battery optimisation for the application, but for us on the OnePlus 7 it works even with it.

ikresicc pushed a commit that referenced this issue Sep 28, 2023
Merge in MML/infobip-mobile-messaging-android.wiki from dkomusanac-MM-5411-update-screenshots-cup-design to master

Squashed commit of the following:

commit db9ee122f25cc5a24ce08e9bb63918b80a220a26
Author: Davor Komušanac <[email protected]>
Date:   Tue Dec 6 16:39:40 2022 +0100

    show all properties of events in screenshot

commit f031f9b27e9eca5b76ee2af6ab7a4e8c63ae3360
Author: Davor Komušanac <[email protected]>
Date:   Tue Dec 6 13:09:24 2022 +0100

    update correct segment use, show expanded event

commit 04e10b55ff0bb590bad6c8780b8c4abaa5464180
Author: Davor Komušanac <[email protected]>
Date:   Thu Dec 1 12:54:10 2022 +0100

    remove reduntant text and update screenshot

commit 4bef9d56c4c8e3a5bb4164f2ebf20d9d55b88546
Author: Davor Komušanac <[email protected]>
Date:   Thu Dec 1 02:07:32 2022 +0100

    add updated screenshots from new cup design
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants