Skip to content

Commit 50743d5

Browse files
authored
Merge pull request #4812 from segmentio/ashton-huxtable-patch-1
Add FAQ's on notifications to backgrounded Android apps
2 parents 6cbb21e + cc038de commit 50743d5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/connections/spec/native-mobile-spec.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,15 @@ You can, but the sooner you switch to the spec'd events, the further back you'll
5959
### How will I be able to take advantage of new campaign events?
6060

6161
In the coming months, we'll be updating our mobile marketing destinations to automatically capture campaign events around attribution, deep linking, and push notifications. These events will go to [destinations](/docs/connections/destinations/), including [warehouses](/docs/connections/storage/catalog/).
62+
63+
### Why don't Push Notification events reach Segment when my Android App is backgrounded?
64+
65+
Android applications can't receive Push Notifications when the process is not running, and when apps are put into background they are eligible to have their Process killed when there is memory pressure. For more more on Android processes, view Android's [Processes and app lifecycle documentation](https://developer.android.com/guide/components/activities/process-lifecycle){:target="_blank"}.
66+
67+
Segment tracks messages delivered to the application. So if the process has been killed for any reason, messages won't be delivered.
68+
69+
### Why do Push Notifications work with Firebase Cloud Messaging when the app is backgrounded?
70+
71+
Firebase Cloud Messaging (FCM) has its own servers. When an FCM message is created and sent to a device, that message travels through FCM servers and is delivered to the local FCM client device that is part of Android OS. This FCM client is almost always running, even when the app is backgrounded. From there, the FCM message is intended to be delivered to a local application. If the app process is running, the message gets delivered. Otherwise, the user must tap a notification that starts the app and delivers the FCM message.
72+
73+
For more context on how this process works, view the [Firebase FCM architecture documentation](https://firebase.google.com/docs/cloud-messaging/fcm-architecture){:target="_blank"}.

0 commit comments

Comments
 (0)