How can I set up title for in-app message via API when send request to push notification?
Example of my request
$client->post('push', [
\GuzzleHttp\RequestOptions::JSON => [
'audience' => [
'named_user' => '123-test-test',
],
'notification' => [
'alert' => '123',
'actions' => [
'open' => [
'type' => 'deep_link',
'content' => json_encode([
'path' => 'order',
'params' => [
'id' => 123
],
]),
],
],
'ios' => [
'alert' => 'Hello iOS!',
'title' => 'Insert title here',
],
'android' => [
'alert' => 'Hello iOS!',
'title' => 'Insert title here',
],
],
'device_types' => ['ios', 'android', 'web'],
'in_app' => [
'alert' => 'test',
'display_type' => 'banner',
'expiry' => \Carbon\Carbon::now()->addDays(7)->format('Y-m-d\TH:i:s'),
'display' => [
'position' => 'top',
],
'actions' => [
'add_tag' => 'in-app',
'open' => [
'type' => 'deep_link',
'content' => json_encode([
'path' => 'order',
'params' => [
'id' => 123
],
]),
],
],
]
]
]);
Comments
4 comments