Spanish [Solucionado] Saber que notificación se selecciono

carlos7000

Well-Known Member
Licensed User
Longtime User
Me autorespondo.

La forma de saber que notificación se selecciono es esta:

Al crear la notificación, crearla con SetInfo2. Ejemplo

B4X:
n.SetInfo2("Titulo", "Cuerpo del mensaje", "Tag", Main)

Para saber que notificación seleccionó el usuario, se hace así:

B4X:
Sub Activity_Resume
    Dim in As Intent
    in = Activity.GetStartingIntent
    If in.HasExtra("Notification_Tag") Then
        Log(in.GetExtra("Notification_Tag")) 'Will log the tag
    End If
End Sub

Saludos.
 
Top