function to store GCM id