cordova-plugin-local-notifications icon indicating copy to clipboard operation
cordova-plugin-local-notifications copied to clipboard

IOS: Actions button not working

Open ksabariraj opened this issue 4 years ago • 7 comments

WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!

Provide a general summary of the issue.

Your Environment

  • Plugin version: 0.9.0-beta.3
  • Platform: IOS
  • OS version: 13.3.1
  • Device manufacturer / model: Iphone 6s
  • Cordova version (cordova -v): 9.0.0
  • Cordova platform version (cordova platform ls): 5.1.1
  • Plugin config
  • Ionic Version (if using Ionic) : 5.4.15

Expected Behavior

Action button should visible

Actual Behavior

Action button not visible

Steps to Reproduce

I used the example code:

(<any>window).cordova.plugins.notification.local.schedule({ title: 'Local Notification Plugin', text: 'Made by appPlant from Leipzig/Germany', icon: 'file://img/icon.png?crop=cirlce', attachments: ['file://img/icon.png'], actionGroupId: 'like-dislike', trigger: { in: 10, unit: ELocalNotificationTriggerUnit.SECOND }, actions: [{ id: 'like', type: 'button', title: 'Like', launch: true },{ id: 'dislike', type: 'button', title: 'Dislike', ui: 'decline' },{ id: 'feedback', type: 'input', emptyText: 'Enter feedback', submitTitle: 'Send' }] });

ksabariraj avatar Mar 12 '20 09:03 ksabariraj

Hi, I am facing the same issue on iOS.

rkjamvi avatar May 13 '20 16:05 rkjamvi

Same problem here but little strange I have defined 3 action group :

window.cordova.plugins.notification.local.addActionGroup('action-treatment', [
  { id: Constants.Notification.Events.Treatments.Taken, title: 'MY_BUTTON_1' },
  { id: Constants.Notification.Events.Treatments.Reminder, title: 'MY_BUTTON_2' },
  { id: Constants.Notification.Events.Treatments.Cancel, title: 'MY_BUTTON_3' }
])

window.cordova.plugins.notification.local.addActionGroup('action-risk', [
  { id: Constants.Notification.Events.Treatments.NewRisk, title: 'MY_BUTTON_1' },
  { id: Constants.Notification.Events.Treatments.Cancel, title: 'MY_BUTTON_2' }
])

window.cordova.plugins.notification.local.addActionGroup('action-reminder', [
  { id: Constants.Notification.Events.Reminders.Ok, title: 'MY_BUTTON_1' }
])

On Android all work fine On iOS the first and third (action-treatment and action-reminder) definition not show buttons but the second (action-risk) show them

If I don't use global action group definition and specify actions in each notification schedule iOS work fine 🤯

If someone have solution, I'm in 😸

0xThomasLS avatar Jul 15 '20 12:07 0xThomasLS

Same problem here. Action buttons don't show up on iOS but fine on Android.

tommymetz avatar Aug 10 '20 16:08 tommymetz

Any solution to this?

AleksandarTokarev avatar Sep 08 '20 11:09 AleksandarTokarev

Someone could resolve this issue? I've been trying to deal with it

bjdose avatar Sep 10 '20 22:09 bjdose

Any update for this issue?

terryjiang2020 avatar Dec 06 '22 23:12 terryjiang2020

any resolution on this?

ferd2009 avatar Sep 21 '23 04:09 ferd2009