
You can customize mobile push messages to display appropriate content based on your customer's attributes. Personalize your outreach by tailoring messages to your audience's gender preferences and understand and cater to the unique needs and interests of both male and female consumers for more successful marketing and sales strategies.

This use case describes how to create a mobile push notification for customers based on their gender with the use of attribute stored in the customer's profile.

## Prerequisites 
---
- Integrate Synerise [mobile SDK](/developers/mobile-sdk) in your mobile application. 
- Implement mobile pushes in your mobile application: [iOS](/developers/mobile-sdk/configuring-push-notifications/ios), [Android](/developers/mobile-sdk/configuring-push-notifications/android).
- Store gender attribute on customer's profile

  <div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

  In our example, a customer can have the attribute `user_gender`, which stores one of values:
  - woman
  - man

  </div></div></div>


## Create push notification
---
In this part of the process, you will create a [simple mobile push](/docs/campaign/Mobile/simple_push) notification that displays content based on the assigned gender attribute value.

1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/experience-hub-icon.svg" alt="Experience Hub icon" class="icon" > **Experience Hub > Mobile Push > Create new**
2. Enter the name of the push notification (it is only visible on the list of notifications).
3. As the mobile notification type, select **Simple push**.
4. Specify **Device type** according to you business needs:
    1. Select one of the tabs: **All**, **Android** or **iOS**.
    2. Click **Apply**.
5. Define your **Audience** according to you business needs.

### Define Content
---

1. In the **Content** section, click **Define**.
2. Click **Create message**.
3. Select the **Drag&drop builder**.
4. Prepare the message which your customer will get:
    1. In the **Title** field, enter the text that will display in the header of the notification. You can use up to 160 characters.
    2. In the **Message** field, enter the text that will display in the body of the notification. Use the below code, which will select the appropriate message depending on the user's attribute:

        
       <pre><code class="language-jinja">&lt;!-- Content for users with woman attribute value --&gt; 
               {% if customer.user_gender == "woman" %}
               Check new woman collection
               &lt;!-- Content for users with man attribute value --&gt;
               {% elif customer.user_gender == "man" %} 
               Check new man collection
               &lt;!-- Content for users without such attribute --&gt;
               {% else %}
               Check new collection
               {% endif %}</code></pre>
 

    3. Optionally, you can define settings in OS tabs. Select the OS for which your notification is dedicated, if you create a template for both OS, fill out the settings in both tabs: **iOS** and **Android**.
    4. In the **Action type** section, define what happens when the customer clicks the notification, choose **Deep linking** or **Open URL**. Use the same code as in the **Message** field:
    
        
       <pre><code class="language-jinja">&lt;!-- Content for users with woman attribute value --&gt; 
               {% if customer.user_gender == "woman" %}
               Check new woman collection
               &lt;!-- Content for users with man attribute value --&gt;
               {% elif customer.user_gender == "man" %} 
               Check new man collection
               &lt;!-- Content for users without such attribute --&gt;
               {% else %}
               Check new collection
               {% endif %}</code></pre>
 

    5. If your template is ready, click **Next**.

        <figure>
        <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/use-cases/all-cases/_gfx/push-gender.png" alt="The view of the mobile push notification configuration"  class="large">
        <figcaption>Mbile push notification configuration</figcaption>
        </figure> 

5. Click **Apply**.

### Schedule the notification and additional parameters
---
In this part of the process, you will define when the push notification will be sent. 

1. In the **Schedule** section, click **Define**.
    1. Choose **Display time** according to your business needs.
    2. Additionally, you can enable **Silence Hours**.
2. Click **Apply**.
3. Optionally, in the **Additional parameters** section, you can [add up to 10 parameters which will be added to every event generated by this communication](/docs/campaign/Mobile/creating-mobile-push#define-additional-parameters).
4. Click **Send**.

## Check the use case set up on the Synerise Demo workspace
---
You can check the [mobile push configuration](https://app.synerise.com/campaigns/create/e6472fed-40d9-4073-8de2-3aab3c530a23) directly in Synerise Demo workspace. 

If you’re our partner or client, you already have automatic access to the **Synerise Demo workspace (1590)**, where you can explore all the configured elements of this use case and copy them to your workspace.  

If you’re not a partner or client yet, we encourage you to fill out the contact [form](https://demo.synerise.com/request) to schedule a meeting with our representatives. They’ll be happy to show you how our demo works and discuss how you can apply this use case in your business. 

## Read more
---

- [Jinjava onserts](/developers/inserts)
- [Mobile campaigns](/docs/campaign/Mobile)