I have a windows 8.1 store app project, and in it when i user logs in i create a push notification channel like this:
var channelpush = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
My app connects to a api in nodeJS, and after i create the PushNotificationChannel i send the channelpush.Uri
to the api and it gets store in my user information.
then the api as a method to send push notifications with nodeJS, using push-notify
The problem is that, it when i connect with the same user on different devices the push channel created is different on each device.
is there a way to create a unique channel Uri depending on a user? or should i just store all channels created and send notifications too all of them (since they are all from the same user on different devices)
Push notification channels are deliberately per user, per app and per device.
There isn't a way to create a channel which is unique per user. You will, as you say, need to store all channels that are still valid if you have users on multiple devices.