【问题标题】:Ionic push notification when app is open应用程序打开时的离子推送通知
【发布时间】:2018-08-08 17:36:27
【问题描述】:

当应用程序打开时,我会收到推送通知。

我用 pushObject.on('通知')

但我立即收到此通知,但在通知栏中没有看到它。

是否可以在应用打开时保持通知而不做任何事情。换句话说,当应用关闭时保持相同的行为

【问题讨论】:

    标签: ionic-framework push-notification ionic3 push


    【解决方案1】:

    forceShow: true 将解决这个问题。在离子1工作

    android: {
         senderID: SENDER_ID,
         icon: "icon",
         forceShow: true 
    },
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多