Code sends browser notification
-
Hi
This code sends browser notification instead of App notification, my app is android made in ionic platiform, please help
<?php
function onesignal_send_notification_filter($fields, $new_status, $old_status, $post)
{
$fields[‘isAndroid’] = true;
$fields[‘isIos’] = true;
$fields[‘isAnyWeb’] = false;
$fields[‘isChrome’] = false;
$fields[‘data’] = array(
“myappurl” => $fields[‘url’]
);
/* Unset the URL to prevent opening the browser when the notification is clicked */
unset($fields[‘url’]);
return $fields;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Code sends browser notification’ is closed to new replies.