-
Notifications
You must be signed in to change notification settings - Fork 148
Push Notifications are not getting triggered on Android 12 and latest. #761
Description
Xamarin.Android Version (eg: 6.0): 5.0.0.2578
Operating System & Version (eg: Mac OSX 10.11): Ventura 13.1
Xamarin.Firebase.Messaging
Version : 123.1.1.1
Describe your Issue
When trying to trigger a "test send" notification from Microsoft Azure notification hub, the result says that the notification has been sent successfully, but the Android devices with OS 12 and latest don't seem to get any notifications. However, the Android devices with OS version less than 11 are getting the notifications.
Relevant information
Add relevant project settings from *.csproj
file:
Packages used:
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2578" />
<PackageReference Include="Xamarin.Essentials" Version="1.7.5" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.6.1" />
<PackageReference Include="Xamarin.AndroidX.Browser" Version="1.5.0" />
<PackageReference Include="Xamarin.Google.Android.Material" Version="1.8.0" />
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.V4" Version="1.0.0.16" />
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.3</Version>
</PackageReference>
<PackageReference Include="AndHUD">
<Version>1.4.2</Version>
</PackageReference>
<PackageReference Include="Xamarin.Azure.NotificationHubs.Android">
<Version>1.1.4.1</Version>
</PackageReference>
<PackageReference Include="OxyPlot.Core">
<Version>2.0.0</Version>
</PackageReference>
<PackageReference Include="OxyPlot.Xamarin.Android">
<Version>1.0.0</Version>
</PackageReference>
<PackageReference Include="Plugin.Permissions">
<Version>6.0.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Crashes">
<Version>5.0.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Analytics">
<Version>5.0.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.Identity.Client">
<Version>4.52.0</Version>
</PackageReference>
<PackageReference Include="Plugin.CurrentActivity">
<Version>2.1.0.4</Version>
</PackageReference>
<PackageReference Include="Xamarin.Google.Dagger">
<Version>2.44.2.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Firebase.Messaging">
<Version>123.1.1.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Android.Support.v4">
<Version>28.0.0.3</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Core">
<Version>1.9.0.2</Version>
</PackageReference>
<PackageReference Include="OxyPlot.Xamarin.Forms">
<Version>1.0.0</Version>
</PackageReference>
Build settings (tools)
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
<AndroidPackageFormat>apk</AndroidPackageFormat>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
NOTE: Please DO NOT submit screenshot images. Images are not searchable!
Minimal Repro Code Sample
If you want to speed up investigation and bug fixing: please provide minimal repro sample for tests.
Steps to Reproduce (with link to sample solution if possible):
-> Login to the application
-> In the relevant notification hub, click on test send
-> Provide the tag expression
-> Click on "Test Send"
-> Observe that the result says " The Push Notification has been sent successfully ".
-> But your device doesn't receive any.