NikolayRys / Likely

The social sharing buttons that aren’t shabby
ISC License
395 stars 61 forks source link

Add Viber service provider #174

Closed sashotoster closed 4 years ago

sashotoster commented 4 years ago

In Viber sharing works like forwarding, so at least in some versions it's not possible to edit a shared message (unlike Whatsapp, for example, where a shared text ends up being a message draft). Therefore it's probably not a good idea to use title option (which has a fallback to page title in case it's not set by user). Instead we allow user to specify message with data attribute and we handle it with new option, so that we can still pass everything in one query parameter without messing with content of url / title.

No tests added: it looks like a popup that suggests opening Viber / Whatsapp is a browser-level notification that cannot be properly accessed with selenium, so for now both can only be tested manually. I would appreciate suggestions on improving it.

Resolves #146