Question

Thais Andrade on Wed, 15 Aug 2012 17:40:54


I'm getting this exception while openning a channel for push notification:

"The maximum number of channels have already been opened on this device.  A channel must be removed before a new one can be opened."

Any ideia how to solve it?

Thanks!


Sponsored



Replies

Eric Fleck on Wed, 15 Aug 2012 20:11:13


If this started occuring after debugging for a while then it's possible you have some orphaned channels.  The phone checks for orphaned channels on startup so powering the phone off and back on will trigger a cleanup.

  Also, make sure you use HttpNotificationChannel.Find(...) to check for / recover a channel created in a previous run before attempting to create a new channel.

If that does not fix the problem then there are no orphaned channels and you will need to disable push notification for one of the other apps you have installed.  All apps should have some way to enable/disable push notification but if you have trouble finding uninstalling the app should also clean up any channels it owns.

petevzh on Tue, 28 Aug 2012 08:48:05


PushNotificationChannelQuotaExceeded - The maximum number of channels has already been opened on this device. A channel must be removed before a new one can be opened.

Resolution of problem “The maximum number of channels have already been opened on this device”

1. Update WindowsPhone to lates version, perhaps 7.8

OR

2. Power off! If this started occurring for a while then it's possible you have some orphaned channels.  The phone

checks for orphaned channels on startup so powering the phone off and back on will trigger a cleanup.

OR

3. Redeploy .xap file

or

4.Uninstall some application that may open push notification channel.

If points 1,2 or 3 does not fix the problem then there are no orphaned channels and you will need to disable push

notification for one of the other apps you have installed.  All apps should have some way to enable/disable push

notification but if you have trouble finding uninstalling the app should also clean up any channels it owns.

5. Games/Settings/Show game alerts(Always display Xbox LIVE game notifications) - set to OFF