Fixed cancel bug.
Implemented what to do for defined GCM messages.