Skip to content

Commit

Permalink
Fix Android v12.0 Crash
Browse files Browse the repository at this point in the history
  • Loading branch information
brminnick committed Jan 14, 2022
1 parent d0a557e commit 62184c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion GitTrends.Android/GitTrends.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<PackageReference Include="Xam.Plugins.Android.ExoPlayer" Version="2.11.8" />
<PackageReference Include="Xamarin.Firebase.Messaging" Version="122.0.0.3" />
<PackageReference Include="Microsoft.Azure.NotificationHubs" Version="4.1.0" />
<PackageReference Include="Xamarin.GooglePlayServices.Base" Version="117.6.0.2" />
<PackageReference Include="Xamarin.GooglePlayServices.Base" Version="117.6.0.3" />
<PackageReference Include="Xamarin.Forms.PancakeView" Version="2.3.0.763-beta" />
<PackageReference Include="Xamarin.Essentials.Interfaces" Version="1.7.0" />
<PackageReference Include="Xamarin.Build.Download" Version="0.10.0" />
Expand All @@ -103,6 +103,7 @@
<PackageReference Include="Shiny.Jobs" Version="2.3.0.2906" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Runtime" Version="2.3.1.4" />
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Extensions" Version="2.2.0.10" />
<PackageReference Include="Xamarin.AndroidX.Work.Runtime" Version="2.7.0" />
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
Expand Down
2 changes: 1 addition & 1 deletion GitTrends.Android/Services/NotificationService_Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void Initialize()
public Task SetiOSBadgeCount(int count) => throw new NotSupportedException();
}

[Service, IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })]
[Service(Exported = true), IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })]
public class FirebaseService : FirebaseMessagingService
{
static TaskCompletionSource<NotificationHubInformation>? _notificationHubInformationTCS;
Expand Down

0 comments on commit 62184c3

Please sign in to comment.