Skip to content

Different issues in Android push notification for actual device and in emulator #211

Description

@Nullstr1ng

Bug Information

Version Number of Plugin: 2.3.5
Device Tested On: Samsung J7, Xiaomi Note 5 Plus
Simulator Tested On: Genymotion Emulators, VS Emulators
Version of VS: 15.8.9
Version of Xamarin: 4.11.0.779
Versions of other things you are using:

I would like to go straight to the problems instead of following the reporting templates.

So here it is

First

Everything is installed and followed correctly - I mean correctly that results to WORKING PROPERLY in any emulator I use. So we established this one, and understand that push notification is working in any emulator. Also I properly subscribe to the topics I want.

Second

Here comes the different issues when testing to actual devices: Samsung J7 and Xiaomi Note 5 Plus (and probably under devices too)

Testing in Xiaomi
So I made sure, the app that I am working on is uninstalled and have a proper internet connection.

  1. Ran the application I am working on the first time.
  2. Sent a test notification on the other test project which sends a test notification
    (PS emulator is running too along with other test devices, but now my Xiaomi device)
  3. Emulators caught the notification as well in the Xiaomi device. Move the app in background by pressing home button and still, I am receiving the notifcation in the Xiaomi device.

here's the screen shot (notice the badge with number 2)
image

  1. Stop the debugger. Interestingly, the badge was gone as well. I was not even clearing the notifcations.
  2. I ran the app by tapping on the application icon it self in my home screen.
  3. Sent another notification, and this time .. it's not receiving ANY notifications anymore.
  4. Closed the app, ran again, but this time in VS, so the app launches and I sent another test notifcation.. STILL, NO notifcations received in Xiaomi device.
    Take note though that the emulator is consistently receiving those test notifications.

Testing in Samsung J7
Same steps I did in Xiaomi - same behavior.

Icons

I also noticed, the have different icons when in foreground and in background? Anyway to fix this?
image

What are the things I did after

I just followed these steps.
https://threema.ch/en/faq/push_andr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions