With app running, how to update activity without pulling down the notification?

32 views
Skip to first unread message

fsi...@emergencyuniversity.com

unread,
Aug 19, 2016, 2:17:20 PM8/19/16
to android-gcm
Is this possible?  With iOS (APNS), it seems to work this way.  With GCM, it doesn't seem to.  When my app is running, and I see my notification icon on top, if I touch/pull down the notification, everything works great, I want to update a screen (the given activity) without having to do that.  When I send the notification from my Listener service, I do:

intent.AddFlags(ActivityFlags.ClearTop);

I tried intent.SetFlags(ActivityFlags.NewTask), but that doesn't send any notifications.

How can I have it work like APNS, where it just automatically updates the screen if the app is running?  Is it just a flag somewhere?

Thanks

Diego Giorgini

unread,
Aug 22, 2016, 8:30:05 PM8/22/16
to android-gcm
Hi,
sorry but I am not understanding your question.
I suggest to open a question on one of our community support channel: https://firebase.google.com/support/ 

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/53de4810-d22a-4aa7-a4d1-eb5936e76f8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fsi...@emergencyuniversity.com

unread,
Sep 15, 2016, 2:55:36 PM9/15/16
to android-gcm
Thanks for the tip about Firebase support.  They helped me.  It turns out it wasn't that hard.  In the OnMessageReceived method of the GCM Listener service, instead of sending the notification, I can just execute the code that the notification would have done.  Works fine -- thanks.

Massimiliano

unread,
May 5, 2024, 5:32:02 PMMay 5
to android-gcm
MT103/202 DIRECT WIRE TRANSFER
PAYPAL TRANSFER
CASHAPP TRANSFER
ZELLE TRANSFER
LOAN DEAL
TRANSFER WISE
WESTERN UNION TRANSFER
BITCOIN FLASHING
BANK ACCOUNT LOADING/FLASHING
IBAN TO IBAN TRANSFER
MONEYGRAM TRANSFER
IPIP/DTC
SLBC PROVIDER
CREDIT CARD TOP UP
DUMPS/ PINS
SEPA TRANSFER
WIRE TRANSFER
BITCOIN TOP UP
GLOBALPAY INC US
SKRILL USA
UNIONPAY RECEIVER

Thanks.


NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT.

DM ME ON WHATSAPP
+44 7529 555638

Reply all
Reply to author
Forward
0 new messages