Start a new topic

Push feature not working. Whys is it so?

Hi,

I have written some push notification code in my onPostsave() collection hook. However, I do not see the push message appearing on the user's device.



Here is my code -:



var push = modules.push, collectionAccess = modules.collectionAccess, logger = modules.logger;

var userCollection = collectionAccess.collection('Users');

var body = request.body;



var query = {"username": "amol"};

userCollection.find(query, function (err, userColl) {



if (err) {

logger.error('Query failed: '+ err);

} else {

userColl.forEach(function (user) {

logger.info('Pushing message to ' + user.username);

push.send(user, "New notes for tag(s): ");

});

}

response.continue();

});



In the above code, I am querying the collection "Users" for the "username" as "amol" and then sending a push notification to his device.

Now, in this "Users" collection, there is a column called "_push" and only for this user "amol", there is a device token seen in this column. However, the push notification fails to appear on the device of this user "amol".



Please help. Any help would be highly appreciated.



Thanks,



Ramesh

Ramesh,



This is actually an issue on our end that we are looking to resolve. This has already been escalated to engineering, and they are working on a fix. While I don't have an ETA for this yet, this is considered to be a core part of our product offering and I would assume that it will be addressed very shortly after the holidays.



Thanks,
Hey Ramesh,



I wanted to update this thread to let you know our progress.



We have identified 2 separate instances of unexpected behavior in our implementation of push. At this time we are working on fixes for both and expect to deploy the first of which by the end of this week. We expect to deploy the second early next week. I will keep this thread updated with progress on both fixes.



Thanks,
This has been resolved in our production environment. Thanks for your patience.
Any news here? Can we use business logic scripts to send push notifications?

Thx!

V3ga
This was fixed a little while ago, apologies for not updating (I went through and updated a great deal of other threads, somehow this one slipped through the cracks of my spreadsheet).



You should now be able to send push notifications via any properly registered device on any platform.



Thanks
We are having the same issue in Push Notification, iOS to be specific. It is working fine in using the sandbox or development certificates. But when we switched to Production Mode, nothing is being received in the devices although the console is returning a successful sent. What shall we do? Although we were advised to try cloning the collection, the problem is that the Cloning feature in your legacy console panel does not allow us to select a destination environment. Please help.

I think I am also facing this issue. Did you get any proper solution?


Any suggestion ?

9apps

Hi,


Please provide some more details regarding what errors you are getting?


Thanks,

Pranav

Login or Signup to post a comment