+ Start a Discussion
Sean Le 6Sean Le 6 

Push Notification Resources (Chatter rest api) does not work.

Hello everyone,

I am developing a native iOS app using Salesforce SDK (connected app). I want to use push notification api to send notification to anyone who is involved in some events (out of Salesforce). But it does not work for me.

 Here's the uri which I use to send a post method:

and the server returned an error:
        "message": "The requested API is not available to portal users. You may need to specify a community for portal user access.",
        "errorCode": "FUNCTIONALITY_NOT_ENABLED"
For communities, use this resource:


See the information about constructing the community URLs here:
Sean Le 6Sean Le 6
It's still not working. I used the uri as below:

the server returned an error:
        "errorCode": "NOT_FOUND",
        "message": "The requested resource does not exist"


This resource is only accessible when the session is created with the connected application created in the same organization as the application you're trying to send notifications to. Use /services/data/v31.0/connect/notifications/push URI.
@Sean Le 6:  Did you get it work?  I have the same issue. Getting a 404 on 
@BlueCloud You should use /services/data/v31.0/connect/notifications/push, but make sure that you're using the session from the connected application that is created in your org.
that's not working for communities. Also, it looks like it won't work for a third party app created by a vendor/developer org

So here is the  scenario:-

                1. Vendor/Develoepr ABC Co. creates a remote/connected  app (mobile) in their develoepr org.
                2. John Doe from MNC. Co downloads the app and uses it to login to his Org using his credentials.
                3. Now app wants to send a PUSH notification using the REST API to another user in John Doe's organization. 

According the documentation this won't work because the App is created in a different Org. Is that true?