Closed lukaszsz99 closed 1 year ago
Yes, you can override the props
Here is a working stackblitz https://stackblitz.com/edit/ngx-sharebuttons-zc2yo3?file=src%2Fapp%2Fapp.module.ts
ShareButtonsModule.withConfig({
prop: {
whatsapp: {
share: {
desktop: 'https://api.whatsapp.com/send?',
android: 'whatsapp://send?',
ios: 'https://api.whatsapp.com/send?'
},
}
},
debug: true,
}),
At the time I configured whatsapp the default links worked the best. maybe now https://api.whatsapp.com/send?
works for all platforms, do let us know what worked out for you!
I want to redirect from Whatsapp ngx-sharebutton to https://api.whatsapp.com/ from desktop browser (ngx-sharebuttons v11.0.0).
Current Behavior When clicking Whatsapp sharebutton using ... it redirects to ... : using desktop browser - it redirects to - https://web.whatsapp.com/ using mobile browser - it redirects to - https://api.whatsapp.com/
Expected Behavior When clicking Whatsapp sharebutton using ... it redirects to ... : using desktop browser - it redirects to - https://api.whatsapp.com/ using mobile browser - it redirects to - https://api.whatsapp.com/
Purpose When redirected to https://api.whatsapp.com/ on desktop, the Whatsapp application (desktop version) will open automatically if it is installed.
Environment