wppconnect icon indicating copy to clipboard operation
wppconnect copied to clipboard

Sending button not working on ios device

Open hardik323 opened this issue 2 years ago • 9 comments

I am tryting to send button with url-actions using following code, which not working in ios device: // Simple message client.sendText('@c.us', 'A simple message');

// With buttons client.sendText('@c.us', 'WPPConnect message with buttons', { useTemplateButtons: true, // False for legacy buttons: [ { url: 'https://wppconnect.io/', text: 'WPPConnect Site' }, { phoneNumber: '+55 11 22334455', text: 'Call me' }, { id: 'your custom id 1', text: 'Some text' }, { id: 'another id 2', text: 'Another text' } ], title: 'Title text' // Optional footer: 'Footer text' // Optional });

image

hardik323 avatar Aug 17 '22 01:08 hardik323

Same here

vishwajit76 avatar Aug 17 '22 03:08 vishwajit76

android or ios?

The templete buttons are only working on android for now

use buttons simple is working on android and iphones

client.sendText('@c.us', 'WPPConnect message with buttons', { buttons: [ { id: 'your custom id 1', text: 'Some text1' }, { id: 'another id 2', text: 'Another text2' }, { id: 'another id 3', text: 'Another text3' } ], title: 'Title text' // Optional footer: 'Footer text' // Optional });

adrianokelvio avatar Aug 17 '22 03:08 adrianokelvio

I solved mine by set useTemplateButtons: false

momokang avatar Aug 17 '22 08:08 momokang

But useTemplateButtons: false does not work with urls buttons, right?

Sau64 avatar Aug 17 '22 17:08 Sau64

Yes, url and phone is not working

momokang avatar Aug 18 '22 03:08 momokang

Any update?

vishwajit76 avatar Aug 22 '22 04:08 vishwajit76

useTemplateButtons: false works in android properly. On ios, sometimes it does not send the message.

hardik323 avatar Aug 23 '22 20:08 hardik323

There has been some advance in this matter in the following project.

https://github.com/adiwajshing/Baileys/issues/2006

Sau64 avatar Aug 30 '22 20:08 Sau64

The Whatsapp made some changes to block "template buttons", that is used when useTemplateButtons is true.

When useTemplateButtons is false, "reply buttons" are used, but there are nothing to do at moment with IOS

edgardmessias avatar Aug 30 '22 20:08 edgardmessias

hi anyone have issue with IOS and how to fix it?

ilias1403 avatar Oct 17 '22 08:10 ilias1403

There are nothing to do at moment

edgardmessias avatar Oct 19 '22 00:10 edgardmessias

it's working again with latest ios app version

Sau64 avatar Nov 23 '22 14:11 Sau64

Templatebuttons still not showing up with app closed or in background but does work with the app open.

Sau64 avatar Nov 23 '22 14:11 Sau64