# Push Notification Get Lost Message

Retrieves the content of a push notification message.

Action available for the following operating systems:

![](https://3821468174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LrTlA1suFa5N48x_83N%2Fuploads%2FMdB0W8fT88XFScV3BzAO%2FTodos%20menos%20IWindows%20CE%20E%20Mobile.PNG?alt=media\&token=5fc39b8a-2683-42aa-aad9-ad7ff8168dc2)

### Parameters

* **Next Message** - Select this option to retrieve the first message in the list of messages currently stored on the device.
* **Specify ID** string - The ID of the message to retrieve.
* **Target From** string - The control or variable where to save the sender of this message.
* **Target Received Date** string - The control or variable where to save the sender of this message.
* **Target Received Time** string - The control or variable where to save the sender of this message.

*Windows*

{% hint style="info" %}
Use this tab if you want to retrieve the content of the message on Windows 10 platform-
{% endhint %}

* **Target Notification Type** string - The control or variable where to save the type of notification message received. For more information on this check MSDN documentation on push notifications. It can be one of:
  * 0 - Toast
  * 1 - Tile
  * 2 - Badge
  * 3 - Raw
  * 4 - TileFlyout
* **Target Notification Content** string - The control or variable where to save the sender of this message.

*Android*

{% hint style="info" %}
Android notification messages have a name/value pairs list. You can retrieve the items you need from that list by adding items to the list bellow.
{% endhint %}

* **Name** string - The control or variable where to save the sender of this message.
* **Type** - The type of value that is in this property. It can be one of:
  * 1 - Int
  * 2 - Long
  * 3 - Short
  * 4 - Boolean
  * 5 - Float
  * 6 - Double
  * 10 - Bundle
  * 101 - String
  * 102 - CharSequence
  * 103 - Char
  * 104 - Byte
* **Target** string - The control or variable where to save the sender of this message.

{% hint style="info" %}
If a message is received and your application is not running, the O.S. will make the appropriate display of the message, and if you enabled the **"Save messages when application is not active"** option in your project properties, it will be saved locally on the device. You can use actions to retrieve the messages that were received while your application was not active.
{% endhint %}

{% hint style="info" %}
Note that lost messages system is not a guaranteed to capture all messages while the App is in the background or closed. None of the operating systems, guarantees their delivery or that it will always deliver them to the App if the App is in the Background or closed.
{% endhint %}

{% hint style="info" %}
Lost messages are mainly for data messages. Notification messages will normally not be captured. (On Android if application is open, they may be captured, because there is no way to tell them apart). If you want to handle lost messages, but also send a user notification, send 2 messages, one data message that will be saved if the app is closed, and one notification message so the user can be notified.
{% endhint %}

{% hint style="warning" %}
On iOS the target "From" is not available.
{% endhint %}

{% hint style="info" %}
Be aware of limitations imposed by Apple/Microsoft/Google on messages sent to background Apps. See this notice from Apple documentation for example: The system treats background notifications as low-priority: you can use them to refresh your app’s content, but the system doesn’t guarantee their delivery. In addition, the system may throttle the delivery of background notifications if the total number becomes excessive. The number of background notifications allowed by the system depends on current conditions, but don’t try to send more than two or three per hour.
{% endhint %}
