简体   繁体   中英

Ionic Push Notification not displaying notifications on Notification bar

I am developing an hybrid app using ionic for this I have implemented the push notification I am able to get an push notification from ionic.io site, but issue is that while getting push notification logo shows me white on the notification bar .

android = new android
{
  image = strImage,
  icon = "",

  data = new data
    {
     priority = "1",
     visibility = "1",
     title = "PushTitle",
     message = "Test Message",
     style = "inbox",
     summaryText = "SummaryText",
     noteId = "1234567"                                
    }
  }

this is my code I don't understand whats goes wrong with it. notification on notification bar look like this highlighted in red color .

在此处输入图片说明

what I need to add into it so that is display the proper on notification bar.

I Just created transparent logo in www/resources folfer with .png file. and then run command from command prompt.

ionic resources --icon

this link will help you to understand about push icon push icon

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM