I create an app for iOS / Android. In the application, I need to implement the Share function (for example, sending text and links to the application via the available communication channels - e-mail, messages, telegrams, etc.). For iOS, I use Activity Popup plugin and it works as it should. But with Android there was a problem. I absolutely can not figure out how to implement such a function.
I tried to use native.showPopup () - it did not help.
I also tried to use system.openURL (“mailto: subject = ‘Test’ & body = ‘Text’”) - this is closer, but does not work for WhatsApp.
I think the problem is that this plugin (or option “social”) works only with social networks (“twitter”, “facebook”, or “sinaWeibo”). And it returns False because none of them are installed on my device (no social networks accounts).
When I implement Activity Popup plugin for iOS it does not matter if I have any social networks accounts on my device.
I have the opportunity to try to send a message through any available service (the installed application), regardless of whether the account of this service is configured. Authorization in a specific service will be requested when opening the corresponding application.
The social plugin should still give you email and sms options even if no social media options are installed. The twitter, facebook and sinaWeibo options are for older versions of iOS pre-activity plugin. Maybe just try calling it without trying to check canShowPopup().
I think the problem is that this plugin (or option “social”) works only with social networks (“twitter”, “facebook”, or “sinaWeibo”). And it returns False because none of them are installed on my device (no social networks accounts).
When I implement Activity Popup plugin for iOS it does not matter if I have any social networks accounts on my device.
I have the opportunity to try to send a message through any available service (the installed application), regardless of whether the account of this service is configured. Authorization in a specific service will be requested when opening the corresponding application.
The social plugin should still give you email and sms options even if no social media options are installed. The twitter, facebook and sinaWeibo options are for older versions of iOS pre-activity plugin. Maybe just try calling it without trying to check canShowPopup().