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.

  1. does android absolutely kill applications if run long time in background ios does? , if receive gcm notifications after app killed android?
  2. 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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -