Ionic push notifications working example

Hello everyone,
I am new to ionic and trying to get push notification setup but still unable to do so. I don’t find there documentation helpful because I tried to copy it step by step almost 7 to 8 times but it doesn’t work for me. Is there a step by step guide to do so ? Or a sample code?