SendGenericPushMessage

Description

Use this activity to send a native notification directly to devices of a specific platform: Android (Firebase) or iOs.


Hub Connection

ConnectionString InArgument<String> REQUIRED

The connection string of the hub you want to send the message.

To obtain this string log in to azure portal and search Notification Hubs in the services section. Select your hub, scroll to section 'Manage' and select 'Access Policies'. Arrived in this menĂ¹ copy the 'DefaultFullSharedAccessSignature' string.

HubName InArgument<String> REQUIRED

The name of the hub you want to send the message.

You can find this name when you log in to azure portal and search Notification Hubs in the services section. You'll see the list of all your hubs with their own names.

Misc

JsonNotification InArgument<String> REQUIRED

The JSON object which represents the notification.

It has two different layouts based on the platform. For Android devices (Firebase) it is:
{
    "notification": {
        "title": "Notification title",
        "body": "Notification text"},
        "data": {
            "property1": "value1",
            "property2":42
        }
    }
}
For iOS devices it is:
{
    "aps": {
        "alert":"Notification text"
    }
}

Platform Platform

The platform for which the message is.

An object representing the notification just sent.

TagExpression InArgument<String>

Tag expressions enable you to target specific sets of devices, or more specifically registrations, when sending a push notification through Notification Hubs.

Whatch this link for more informations.

Specific Devices

SpecificDeviceId InArgument<String>

The DeviceId is used to send a notification to a specific device. This is can be taken from the registration of the app that recives the message.