---
schema_version: "1"
id: 27addf29de4e723c870ff51d9511763a4fb1f5ee09666395f73e50abbf5395fc
title: Use the MobilePush SDK to Send a Location Message to Selected MobilePush Users
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_mp_use_case_send_location.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_mp_use_case_send_location.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c19d837483dad3dfccc32e7b8b10d65ac4ebe15f4d95ce215232aaf1131905b7
description: MobilePush can trigger location messages when users enter or exit a geofence or come within range of a beacon. Choosing an existing audience list or data extension can't be done in Marketing Cloud Engagement, so you must use the SDK to segment location message recipients.
products:
  - Marketing
  - Marketing Cloud Engagement
release: "264"
---
# Use the MobilePush SDK to Send a Location Message to Selected MobilePush Users

MobilePush can trigger location messages when users enter or exit a geofence or come within range of a beacon. Choosing an existing audience list or data extension can't be done in Marketing Cloud Engagement, so you must use the SDK to segment location message recipients.

With the SDK, you can segment recipients of a location message.

- Show the message if the user’s my store location is within the geofence region.
- Show the message if the user has items in the app shopping cart and if the message has an “abandonedCart”:”true” custom key.
- Show the message only when the store is open based on the app’s store location list and the region and local time.
- Don’t show messages if the user isn’t logged in to the app.
- Show specific messages based on the user’s customer profile. For example, customers who are coffee lovers get messages about coffee, but customers who prefer pastry receive a message to “add a coffee” when they’re in the shop.

## Implementation

1. Define which user segments should receive the location messages based on your marketing goals.
2. Create a [location message](https://help.salesforce.com/s/articleView?id=mktg.mc_mp_geofence_messaging.htm&release=264.0.0&type=5 "Contacts can receive a message when their mobile device enters or exits the geofence. A geofence location is a circular boundary that surrounds a geographical point. Contacts can receive a message when their mobile device enters or exits the geofence. In MobilePush, specify the geofence location by address or by dragging a pin onto the map. Also specify the size of the geofence, which is the radius of the circular boundary.").
3. In the CustomKeys field, enter a key that the app uses to match to the user profile. Example, loverType = coffee.
4. Ask your app developer to review the SDK instructions to suppress messages that do not match the value within custom keys.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_mobile_studio-264-0-0-production-enus/26e7f9fa-f44c-489b-9b21-135d26904a29/images/icon_note.png)

Note See the [iOS](https://developer.salesforce.com/docs/marketing/mobilepush/guide/implement-location-messaging-ios.html) and [Android](https://developer.salesforce.com/docs/marketing/mobilepush/guide/implement-location-messaging-android.html) SDK documentation for additional instructions.