java - Will I receive GCM messages if Android kill my app and if I do a Force Close from the settings? -
i'm newbie android development , i'm interested in 2 things connected google cloud messaging.
- does android absolutely kill applications if run long time in background ios does? , if receive gcm notifications after app killed android?
- is there difference between force close (from settings menu) , when app killed android? , if force close receive gcm notifications?
1 - yes, if install in manifest broadcast receiver listens gcm, triggered anyway. event depends on app. common practice start intent service handles message. it's make interact activities of app.
2 - android 3.1, if user force closes app, stop notified of broadcast until user not start app again. check "launch controls on stopped applications" here more details.
Comments
Post a Comment