TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by cg.
Apple's UIActivityViewController does not display a Whatsapp Button. We add a custom application activity here, to display a Whatsapp Button in this case. Our activity composes a message text from the given activity items and opens the whatsapp app for sharing if it's installed on the device.
Import header file:
#import <APLWhatsappProxyActivity/APLWhatsappProxyActivity.h>
Initialize APLWhatsappProxyActivity
:
APLWhatsappProxyActivity *whatsappProxyActivity = [APLWhatsappProxyActivity proxyActivity];
NSArray *applicationActivities = @[whatsappProxyActivity];
Finally init your UIActivityViewController
with the applicationActivities
array.