Questions tagged [notification-action]

20 questions
0
votes
3 answers

NotificationCompat.Builder action is not working

I'm trying to add action in foreground service notification. But action click never fired pending intent. I tried two following approach. 1st Approach Service Intent stopActionIntent = new Intent(STOP_SERVICE); PendingIntent pendingIntent =…
shantanu
  • 2,408
  • 2
  • 26
  • 56
0
votes
1 answer

Nexus 7 tablet not showing notification actions

I'm trying to show notifications actions on a Nexus 7 with Android 6.0.1 but it's not showing. Is it because of the OS? I have tested with a S6 edge with Android 7.0 and it looks perfect. NotificationCompat.Builder(this,…
0
votes
2 answers

Second button from notification, the bundle I receive in IntentService contains the extras from the first button

So this is the code I use for my intents: String tag = "#business"; String secondTag = "#personal"; Intent action1Intent = new Intent(context, NotificationActionService.class) .setAction("tag").putExtra("id",…
0
votes
0 answers

Notification action button

I create UILocalNotification and UIMutableUserNotificationAction if I use iphone, this action button it seems BUT I use ipad this action button does not seems UIMutableUserNotificationAction *action = [[UIMutableUserNotificationAction…
0
votes
1 answer

Notification action need to click twice to perform action

I have notification with three different actions. i.e. Call, SMS, Snooze. But whenever notification come I click on any action then only main activity open but no action perform. but if app is open then action gets perform. If App Open : Action…
1
2