derek82511 / cordova-azure-notification-hubs

Register and receive push notifications via Azure Notification Hub.
MIT License
10 stars 30 forks source link

Tag field #18

Open Foundation29hub opened 4 years ago

Foundation29hub commented 4 years ago

I have managed to register the devices in the notification center, but I would like to assign a value to the tag field. So then, from the server, I can send a notification to a single device. How can I do that? Thank you

ihatred123x commented 4 years ago

I have managed to register the devices in the notification center, but I would like to assign a value to the tag field. So then, from the server, I can send a notification to a single device. How can I do that? Thank you

we used backend to add tags to specific Azure Id, that is the only way so far.

Foundation29hub commented 4 years ago

I have managed to register the devices in the notification center, but I would like to assign a value to the tag field. So then, from the server, I can send a notification to a single device. How can I do that? Thank you

we used backend to add tags to specific Azure Id, that is the only way so far.

Can you give me some more information to know how you did it?

Thank you!

ihatred123x commented 4 years ago

I have managed to register the devices in the notification center, but I would like to assign a value to the tag field. So then, from the server, I can send a notification to a single device. How can I do that? Thank you

we used backend to add tags to specific Azure Id, that is the only way so far.

Can you give me some more information to know how you did it?

Thank you!

`
var azHubRegistration = await _hubClient.GetRegistrationAsync(registrationId); azHubRegistration.Tags = tags;

        await this._hubClient.UpdateRegistrationAsync<RegistrationDescription>(azHubRegistration);
        return azHubRegistration;`