We currently developed a UWP app and have push notifications working. However, the problem arises when users are on VPN the WNS channel does not get created and the app is no longer able to receive push notifications or register with notification hub. The channel is getting created here
var attempts = 0;
try{
PushNotificationChannel channel = null;
do
{
channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
attempts++;
}while(channel == null && attempts< 3);
}
This works on the corp network a channel is created and the device gets registered with notification hub. On VPN the channel does not get created. Anyone experience this before or have any ideas?