Pregunta de entrevista

Entrevista para Android Developer

-Ciudad de Mexico

Globant

You have an Activity, and you implement push notification, when you receive a notification, and you tap on it, the PendingIntent launched point to your Activity. If you open a notification, and your Activity is visible in that moment, in which method of the activity you receive the intent with the information of the push message?

Respuesta

Respuestas de entrevistas

3 respuestas

8

The method is onNewIntent, because your app is already open, and if you ask for the intent on the onResume method, you get the Intent who launched the activity.

Anónimo en

0

onPause() of activity callback will get called

Dinesh Khedkar en

0

OnMessageRecived

Anónimo en

Agregar respuestas o comentarios

Para comentar esto, Inicia sesión o regístrate.