'pubnub subscribe `withPresence` returns 403

Even though read permission for the channel ch.123.456 is enabled:

{resources: {channels: {ch.123.456: { read: true... }}}

pubnub, when I try to subscribe to the channel with

pubnub.subsribe({channels: ['ch.123.456'], withPresence: true})

returns

{"message":"Forbidden","payload":{"channels":["ch.123.456-pnpres"],"channel-groups":[],"users":[],"spaces":[],"uuids":[]},"error":true,"service":"Access Manager","status":403}

Pubnub sdk version 5.0.0.

Any ideas why?



Solution 1:[1]

Try granting access to the Presence channel ch.123.456-pnpres https://www.pubnub.com/docs/security/access-control#publishsubscribe

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Guest