Code for using GCM on App