As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Good afternoon Alexandre,
There was actually a bug in our business logic that was preventing push from being handled correctly that should now be resolved.
Thanks,
Alexandre Leuliet
I try this simple code in a hook :
function onPreSave(request, response, modules) {
var userCollection = modules.collectionAccess.collection('user');
var push = modules.push;
userCollection.find({'username': 'user0'}, function(err, userDocs) {
push.sendMessage(userDocs[0], 'hello');
response.complete(200);
});
}
It works one time but the next tries it fails to send the push notification to the device.
I don't have this problem when I send notifications from the console, is there some kind of limit when sending from a BL hook?
ThanksĀ