Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag field #18

Open
Foundation29hub opened this issue Mar 3, 2020 · 3 comments
Open

Tag field #18

Foundation29hub opened this issue Mar 3, 2020 · 3 comments

Comments

@Foundation29hub
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

ihatred123x commented Jun 4, 2020

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;`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants