Hey @stankovski, @varvusc, @wesmc7777, @mpodwysocki ,
Do you guys knows how should I serialize the iOS device token on my iOS project to send it to my asp.net core backend webapi that will create an installation for Azure Notification Hub on the backend?
I'm trying to do it this way,
public override async void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
if ( deviceToken == null) return;
var deviceInstallation = new DeviceInstallation
{
InstallationId = installationId.Value.ToString(),
Handle = deviceToken.GetBase64EncodedString(NSDataBase64EncodingOptions.None),
Platform = NotificationPlatform.Apns
};
//... Here I post the deviceInstallation object created above to my backend using an HttpClient....
}
However I'm receiving an error from the NotificationHubClient on the backend asp.net core api whe I try to call _hub.CreateOrUpdateInstallationAsync(installation);
Hey @stankovski, @varvusc, @wesmc7777, @mpodwysocki , Do you guys knows how should I serialize the iOS device token on my iOS project to send it to my asp.net core backend webapi that will create an installation for Azure Notification Hub on the backend?
I'm trying to do it this way,
However I'm receiving an error from the NotificationHubClient on the backend asp.net core api whe I try to call
_hub.CreateOrUpdateInstallationAsync(installation);