WeChat iOS SDK Sharing - missing description despite filling parameter -
when try send link or picture description paremeter wechatmoments or wechatsession, description never shown. every other parameter shown correctly, except description. there no errors either. here goes code, notice description filled:
wxmediamessage *message = [wxmediamessage message]; message.title = @"perfect title"; message.description = @"amazing graphic"; nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes); nsstring *documentsdirectory = [paths objectatindex:0]; nsstring* path = [documentsdirectory stringbyappendingpathcomponent:[nsstring stringwithutf8string:thumbnailpath]]; [message setthumbimage:[uiimage imagewithcontentsoffile:path]]; wximageobject *ext = [wximageobject object]; nsstring* filepath = [documentsdirectory stringbyappendingpathcomponent:[nsstring stringwithutf8string:contentpath]]; ext.imagedata = [nsdata datawithcontentsoffile:filepath] ; message.mediaobject = ext; sendmessagetowxreq* req = [[[sendmessagetowxreq alloc] init]autorelease]; req.btext = no; req.message = message; req.scene = (true)?wxscenetimeline:wxscenesession; [wxapi sendreq:req]; i've tried code samples wechatdeveloper documentation, , despite of filling description paremeter, show link title/graphic.
my question is, faced same problem , there solution missing description field?
may problem occur because app not yet verified?
Comments
Post a Comment