Sending push in afterSave trigger

I’m trying to send a push notification from an afterSave trigger but receiving the following error: Error: {"message":"Cannot use the Master Key, it has not been provided.","code":141}

Prior to upgrading to 3.x I was able to pass {useMasterKey: true} in the push call but now this doesn’t work.

Just realized that I wasn’t calling

Parse.initialize(process.env.APP_ID, process.env.JS_KEY, process.env.MASTER_KEY);

and now it’s working :slight_smile: