2

I played with TPushEvents on Android for a while and noticed: when app is minimized push notification immediately goes right to the notification area. I suppose that this behaviour is defined in the native code (inside com.embarcadero.gcm.notifications.GCMNotification).

  1. Can anyone confirm or refute my guess?
  2. How this behaviour can be turned off? (I need to decide by myself whether notification should be displayed to a user.)
RRUZ
  • 134,889
  • 20
  • 356
  • 483
naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259

2 Answers2

1

An alternative way is to inherit FMXNativeActivity class and overrid its public void receiveGCM(Bundle bundle) method but not deal with pause condition.

Sam Shaw
  • 317
  • 2
  • 10
0
  1. I myself can confirm this guess.
  2. Decompile classes.dex, rewrite com.embarcadero.gcm.notifications.GCMNotification to suite your needs, compile and put it back inside classes.dex using the script from here.

    I'm just not sure it's legal.

Community
  • 1
  • 1
naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259