Closed handelcamilo closed 13 years ago
Hey, can you provide more details about your environment?
Which version of Titanium, what OS, etc...?
Hi ebryn, I resolved the issue, but I'm getting another one.
The "loading" message never disappear and webview never is loaded =/
Using Titanium Mobile 1.7.3 Windows 7 Android API 2.3.1. Example Project
ps: Sorry about my english.
You're using the most up-to-date code, right? I just solved an issue like this.
yes, I'm using the latest version!
Have you filled out the OAuth keys?
In first place, thanks so much for helping!! =D I'm filling just consumerKey and consumerSecret!
Sorry, I'm having trouble understanding the situation. Are you having this issue with the consumerKey and consumerSecret them filled in?
Yes, I'm filling both consumerKey and consumerSecret and the Loading Message never disappear and the WebView never is loaded. Do you want my code? I can send you by email or something!
Post a link to a gist.
On Fri, Oct 28, 2011 at 12:11 PM, Handel Camilo reply@reply.github.com wrote:
Yes, I'm filling both consumerKey and consumerSecret and the Loading Message never disappear and the WebView never is loaded. Do you want my code? I can send you by email or something!
Reply to this email directly or view it on GitHub: https://github.com/ebryn/twitter-titanium/issues/1#issuecomment-2559945
There it is:
I don't know why but now I'm getting a different issue. The WebView is loaded, but the Loading message never disappear and turn my application into a loop. My application is restarted every time WebView is loaded.
Looks like you've moved the client.authorize()
line below the last }
. Might want to try moving it back to it's original location?
Also, post a gist of your console log...
I already moved the client.authorize() line below the last } and the problem persists.
The console log is:
http://codeviewer.org/view/code:1fbf
How I told you, the app get stuck in a loop. Whenever the WebView is loaded(aparently) the app is restarted.
Thanks!
Your app.js works fine for me.
You're outside of the US, right? Does Twitter have a local domain or something that they redirect to instead of twitter.com? That could be the issue...
Try adding some debug code to the twitter.js file... find the line with:
webView.addEventListener('load', function(event) {
And try adding this inside the callback function:
alert(event.url);
I'l try this. I'm from Brazil and here twitter doesn't redirect to anywhere. =/
Hm, i added the alert(event.url) but it's not appear!
I'm putting console output again to you see where my app die ok?
Thanks!
ps: My code works with you?
Your code worked fine for me, I'm going to close this issue... please reopen if you have more details.
Hi, I'm using this API but I'm getting this error: "IllegalArgumentException: size < 0"
It happens at:
var Twitter = require('twitter').Twitter;
Thank you!