msabbasi / gcm

Automatically exported from code.google.com/p/gcm
Apache License 2.0
0 stars 0 forks source link

close() is not called on GoogleCloudMessaging instance in DemoActivity #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I didn't find close() method call on GoogleCloudMessaging instance in 

http://code.google.com/p/gcm/source/browse/gcm-client/src/com/google/android/gcm
/demo/app/DemoActivity.java?spec=svn44e0469692d7d10a104cd689d3045a56971f90ce&r=4
4e0469692d7d10a104cd689d3045a56971f90ce

According to 
http://developer.android.com/reference/com/google/android/gms/gcm/GoogleCloudMes
saging.html close() method should be called "when your application is done 
using GCM, to release internal resources. "

So, my understanding is that we should call gcm.close() once device becomes 
registered.
Please comment.

Original issue reported on code.google.com by barinov.sergei@gmail.com on 6 Jun 2013 at 4:47