Skip to content

Commit 1b13e40

Browse files
Add FAQ's on notifications to backgrounded Android apps
1 parent 078e8a6 commit 1b13e40

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 the are eligible to have their Process killed when there is memory pressure. You can read more on Android processes and the [app lifecycle here](https://developer.android.com/guide/components/activities/process-lifecycle).
66+
67+
At Segment, we track messages delivered to the application. So if the process has been killed for any reason, the messages will not 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 it's own servers. When an FCM message is created and sent to a device, that message travels through FCM servers and is delivered to the device to the local FCM client that is part of Android OS. This FCM client is pretty much 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 it will be delivered. If not, then a notification will be created that the user must tap that will start the App and deliver the FCM message.
72+
73+
For more context on how this process works, you can see the Firebase documentation on the [FCM architecture here](https://firebase.google.com/docs/cloud-messaging/fcm-architecture).

0 commit comments

Comments
 (0)