I am trying to setup push notification. I am using the following parameters in my PHP script:
$res = array();
$res[‘title’] = ‘This is title test’;
$res[‘body’] = ‘This is message test’;
$res[‘subtitle’] = ‘This is subtitle test’;
$res[‘tickerText’] = ‘This is tickerText test’;
$res[‘vibrate’] = 1;
$res[‘sound’] = 1;
$res[‘icon’] = ‘Icon-xxxhdpi’;
$res[‘largeIcon’] = ‘Icon-xxxhdpi’;
$res[‘smallIcon’] = ‘Icon-xxxhdpi’;
But I am seeing the default android notification icon show. I did have the following icon files in my project root:
- Icon-hdpi.png
- Icon-ldpi.png
- Icon-mdpi.png
- Icon-xhdpi.png
- Icon-xxhdpi.png
- Icon-xxxhdpi.png
Do I miss anything?
Thanks!