intent.putExtra() in pending intent not working

后端 未结 5 719
你的背包
你的背包 2021-02-02 08:25

I am passing a pending intent through alarmreceiver, from a service class. But, after the pendingIntent fires, the intent.putExtra() information is not being received by the bro

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-02 08:52

    This is because you are first initialize Intent and add to PendingIntent. After that you are adding info in intent. You should add info to intent then add this intent to PendingIntent.

提交回复
热议问题