Firebase push notification not working

I followed this article for push notification on device.
But it’s always throwing error saying "Cannot read property ‘applicationServerKey’ of undefined"
How to solve this issue?