Closed dwalintukan closed 9 years ago
Sorry for the late reply!
We've checked your use case and code and it should work without any problems, actually.
The log statements that you saw was because this library had internal logging enabled by default. This has been fixed in https://github.com/delight-im/Android-DDP/commit/db19049f26e2440decab0e93ea83acf0569725f2 so that you won't see these statements anymore -- unless you explicitly enable this library's internal logging.
Could it be that you didn't see your Log.v(...)
results due to a wrong filter set in your debugger/console?
Regarding the singleton pattern in general, you should change the constructor's visibility from public MeteorHelper(...)
to private MeteorHelper(...)
-- but this is not really that important, of course.
To save you from having to implement the singleton yourself, we've added a recommended singleton implementation in the MeteorSingleton
class in https://github.com/delight-im/Android-DDP/commit/65a0b034e8de9aa9fbe3089eaac7742a1c818a36.
Please get one of the latest JARs and check the "Singleton access" section in the documentation.
Does that help?
I'm logging in the console some text when these methods get fired, but they are not going off. I am signed in and subscribed correctly. I have also set the callback correctly. None of the callbacks are firing correctly. Could this be an issue with the singleton pattern?
Instead they are just going to my log like so: