Hi, I’m trying to create an embed tweet widget in that will use cordova to get a native app. I’m loading the script http://platform.twitter.com/widgets.js (notice I’m using http not https)
The problem is that when I load the widgets script, there’s a call to https https://platform.twitter.com/js/tweet.fc5656a8bd0e61072b33f126ce6831eb.js and for that reason there’s an error in the certificates (Failed to load resource: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “platform.twitter.com” which could put your confidential information at risk.)
Can someone help me regarding this issue?
The {{platform.twitter.com}} domain uses a TLS certificate signed with SHA-1, which will fail App Transport Security on iOS 9 or greater.
Are you able to set an exception domain in your Cordova app to allow a connection to {{platform.twitter.com}}? https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33
Thanks Niall!
However, for some reason, after widgets is called, the iframe is created but without data-tweet-id and the content is not loaded on the iframe. I can see the blockquote twitter-tweet and iframe. Do you know what’s the problem?
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.