Skip to content

Commit

Permalink
Updating NuGet info (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpodwysocki authored Jul 14, 2021
1 parent 0f7a77f commit caadfb1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
<PackageId>Microsoft.Azure.NotificationHubs.Client</PackageId>
<PackageVersion>1.0.0</PackageVersion>
<PackageIconUrl>https://raw.githubusercontent.com/Azure/azure-notificationhubs-xamarin/main/.github/icons/aznh-icon-128x128.png</PackageIconUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/Azure/azure-notificationhubs-xamarin/main/LICENSE</PackageLicenseUrl>
<PackageIcon>aznh-icon-128x128.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Azure/azure-notificationhubs-xamarin/</PackageProjectUrl>
<Authors>Microsoft</Authors>
<Owners>Microsoft</Owners>
Expand All @@ -53,9 +54,9 @@
<ItemGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) ">
<PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.3.0" />
<PackageReference Include="Xamarin.AndroidX.Migration" Version="1.0.8" />
<PackageReference Include="Xamarin.Google.Android.DataTransport.TransportBackendCct" Version="2.3.3" />
<PackageReference Include="Xamarin.Google.Android.DataTransport.TransportRuntime" Version="3.0.0" />
<PackageReference Include="Xamarin.Firebase.Messaging" Version="122.0.0" />
<PackageReference Include="Xamarin.Google.Android.DataTransport.TransportBackendCct" Version="3.0.0" />
<PackageReference Include="Xamarin.GooglePlayServices.Iid" Version="117.0.0" />
<PackageReference Include="Xamarin.GooglePlayServices.Base" Version="117.6.0" />
<PackageReference Include="Xamarin.Android.Volley" Version="1.1.1.1" />
Expand Down Expand Up @@ -88,6 +89,8 @@
</PropertyGroup>

<ItemGroup>
<None Include="..\..\.github\icons\aznh-icon-128x128.png" Pack="true" PackagePath="\"/>

<!-- This None is here so the conditionally included files show up in the Solution Explorer -->
<None Include="**\*.cs;**\*.xml;**\*.axml;**\*.png" Exclude="obj\**\*.*;bin\**\*.*;bin;obj" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.Azure.NotificationHubs.Client
public partial class NotificationHub
{
static string PlatformPushChannel => MSNotificationHub.GetPushChannel();
public static void PlatformSaveInstallation() => MSNotificationHub.WillSaveInstallation();
static void PlatformSaveInstallation() => MSNotificationHub.WillSaveInstallation();

static readonly NotificationHubMessageDelegate _delegate = new NotificationHubMessageDelegate();
static readonly InstallationLifecycleDelegate _installationLifecycleDelegate = new InstallationLifecycleDelegate();
Expand Down Expand Up @@ -107,8 +107,22 @@ static void PlatformSetEnricher()

#region iOS Initialization

/// <summary>
/// This is a callback for when registered for remote notifications has been invoked.
/// </summary>
/// <param name="deviceToken">The device token from APNS.</param>
public static void RegisteredForRemoteNotifications(NSData deviceToken) => MSNotificationHub.DidRegisterForRemoteNotifications(deviceToken);

/// <summary>
/// This is a callback for when the system fails to register for remote notifications.
/// </summary>
/// <param name="error">The error for why the system cannot register for remote notifications.</param>
public static void FailedToRegisterForRemoteNotifications(NSError error) => MSNotificationHub.DidFailToRegisterForRemoteNotifications(error);

/// <summary>
/// This is a callback for when the system receives a remote notification.
/// </summary>
/// <param name="userInfo">A dictionary containing the message data.</param>
public static void DidReceiveRemoteNotification(NSDictionary userInfo) => MSNotificationHub.DidReceiveRemoteNotification(userInfo);

#endregion
Expand Down

0 comments on commit caadfb1

Please sign in to comment.