Code written to handle notifications when inside the application.
Added required code at onresume and onpause of activity.
Solved issue of category_id not parsing.