У меня проблема со звуком в pu sh Уведомление
Использование Ioni c 4 и Angular 8 для создания android app
Мой код для отправки Pu sh in PHP
<?php
error_reporting(E_ALL);
ini_set("display_errors", true);
// prep the bundle
$msg = array
(
'message' => $_POST['message'],
'title' => $_POST['title'],
'subtitle' => $_POST['subtitle'],
'tickerText' => $_POST['ticket_text'],
'vibrate' => 1,
'alert'=> 'true',
'badge'=> true,
'sound'=> 'true',
'largeIcon' => 'large_icon',
'smallIcon' => 'small_icon'
);
$fields = array
(
'registration_ids' => $registrationIds,
'data' => $msg
);
$headers = array
(
'Authorization: key=' . API_ACCESS_KEY,
'Content-Type: application/json'
);
$ch = curl_init();
и файл конфигурации. xml для android платформа
<platform name="android">
<resource-file src="resources/android/push.mp3" target="res/push.mp3" />
</platform>