Ionicv1 FCM推送通知声音在android版本8中不起作用

时间:2019-04-18 10:28:21

标签: ionic-framework

  {
   "collapse_key" : "tts-client127.0.0.1",
   "time_to_live": 1, 
   "delayWhileIdle": true,
   "data": 
   { 
     "click_action": "action.open.facebook.with.url",
     "openURL": "http://tastyfresh.com.au/",        
     "title": "Notification from MY Task",
     "body": "Task is on the way", 
     "content": "Task is on the way||~[Back]~[Go]",
     "content-available": "1",  
     "msgcnt": 1, 
     "badge": 1,
     "soundname": "bellring01",
     "importance": 4,
     "foreground":false
    },

    "registration_ids": ["dev_id1"]
 }  
 -------------------------------------------------------
 package.jsonfile
  "phonegap-plugin-push": "^2.1.3",
  "phonegap-plugin-push": {
     "FCM_VERSION": "11.0.1"
   }

----------------离子信息----------------------------- ----------

  Cordova CLI: 7.1.0 
  Ionic CLI Version: 2.2.1
  Ionic App Lib Version: 2.2.0
  OS: Linux 4.4
  Node Version: v8.0.0


 "
  

FCM后台推送通知可以正确接收,但自定义声音无法在Android Oreo和oreo +上获得系统声音支付。Android7或更低版​​本可以正常工作,仅对oreo或更高版本有问题

0 个答案:

没有答案