Ionic 2 push notifications breaks my app

Hey guys. So I’m build this app and it requires push notifications. I follow the guidelines on this link But when I try and make a call to my api service, it tells me “SyntaxError: Unexpected end of JSON input”. Can anyone please help me?