Open lawchihon opened 7 years ago
Hi,
Thanks - you can't use the Twilio Client Javascript SDK directly in a PhoneGap app. Instead you have to include the PhoneGap plugin's Javascript:
<script type="text/javascript" src="js/tcPlugin.js"></script>
Can you try that out?
Thanks for the quick reply. I am using your example which have included the PhoneGap plugin's javascript in the beginning. Or we need to download the Phonegap plugin somewhere else?
I've answered my solution here #86
I tried to use your example to try out the plugin: https://github.com/lawchihon/TwilioClientPhoneGapExampleApp
But when I run it, it gives me the error of
ReferenceError: Can't find variable: Twilio
If I added the Javascript SDK in index, it will not run the setup at all.
<script type="text/javascript" src="//media.twiliocdn.com/sdk/js/client/v1.3/twilio.min.js"></script>
Why would it happen?
My system information: