-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sendMessage invoked but no messageCallback defined #23
Comments
What's the status of the app when this happens? Is it in the background, closed or open? Are you using the latest version of ti.goosh? |
Hi... the app is open, and yes, i am using 1.6.1 version of the module. |
Does this happen always? |
Yeap... i am trying right now, cleaning the project, and rebuilding it again.. and is the same.. |
Yeah I understand. The callback is supposed to work. That's why we put it there. We're going to investigate the issue and see why this is happening. |
Are you calling you |
hi kopiro, yeap, iniciarapp() is a function, and i called just after some vars set. |
Hi @jcsomac, maybe is not related, but you should never use the From Titanium SDK starter tutorial: Many users attempt to add to the Ti namespace as a means to persist data across contexts, extend / override native methods, etc. This can sometimes work but is very unreliable for the following reasons: The Titanium end objects are really not true JavaScript objects. They are proxy representations of native operating system components. As such, they are constructed to pass through properties and method invocations. Your extensions could conflict with native functionality or interfere with proper operation of the proxy objects. Could you just try to write:
|
Thanks Kopiro, and yes, this is old code and i am changing all that bad practices...
but thanks anyhow.. |
hi guys... any news ? sugestions ? |
Could you post an entire log of |
Sorry @kopiro how can i do that ? |
@jcsomac just open a terminal window and run the code |
it was executed in the root folder of the project. |
run it as |
@jcsomac ? |
Sorry i was on vacations... platform-tools $ ./adb logcat | grep goosh |
Could you try to do a full reinstall of app? |
hi @kopiro, you |
The android app. |
And that's it !!! |
Magic! :) |
A full re-install of my app also fixed: Sending event: exception on thread: AsyncTask #1 msg:java.lang.NullPointerException. |
i am getting this error when i receive a notification
My code is:
Thanks in advance.
Titanium SDK : 5.5.1
The text was updated successfully, but these errors were encountered: