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 Icon problems when android app is stopped #53

Open
SarahCoates1 opened this issue Jul 15, 2020 · 1 comment
Open

Notification Icon problems when android app is stopped #53

SarahCoates1 opened this issue Jul 15, 2020 · 1 comment

Comments

@SarahCoates1
Copy link

Hi. We have recently started using your plugin on our mobile app.

We are setting the notification icon in MainActivity.cs with the following:

        AzurePushNotificationManager.NotificationContentTitleKey = "Some Title";
        **AzurePushNotificationManager.IconResource = Resource.Drawable.notifications;**
        AzurePushNotificationManager.ProcessIntent(this, Intent);

The notifications are being received correctly. The icon displays fine when the notification is received when the app is in the foreground or background. The problem we are experiencing is as follows:

When the app is killed / stopped and a notification is received, our samsung devices, will display a white box rather than the icon.
When the app is killed / stopped and a notification is received, our Huawei device displays the app icon rather than the notification icon (which is an improvement to the samsung, but still confusing).

In androidmanifest we have:

<application android:label="Test App" android:icon="@drawable/icon" android:largeHeap="true" android:allowBackup="false" android:theme="@style/Light" android:usesCleartextTraffic="true">

At the top of MainActivity.cs we also have:

[Activity(Label = nameof(OurApp), Icon = "@drawable/icon", Theme = "@style/Light", MainLauncher = false, ConfigurationChanges = ConfigChanges.ScreenSize, ScreenOrientation = ScreenOrientation.Portrait)]

which also refers to the app icon. I'm not sure which of these 2 places, the app icon is being picked up from on the Huawei.

Do you have any ideas why we have the inconsistencies and how to can get the Samsung devices to display an icon please?

Thank you for a great plugin.

Sarah

@SarahCoates1
Copy link
Author

image

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

1 participant