-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
Indicate if subscribe/unsubscribe to topic failed #422
Comments
These functions are directly inherited from cordova-plugin-firebase. Looking at the source code, neither Android or iOS returns a result for subscribe/unsubscribe actions. However, looking at the Firebase documentation, it looks like The same should be possible for unsubscribe actions. So rather than being a documentation issue, this is a legacy code issue in that it doesn't actually indicate whether there was an error in subscribing/unsubscribing to a topic. I'll change the issue to reflect this. |
@dpa99c Is there another way I can check if subscribe if succesffull, e.g. is it possible to get my subscribtions? If thats possible I can validate if the expected subscribe is succesfull. Is it correct there is a few minutes delay between subscribe and when you can actually receive the messages? When testing in an android emulator it takes a few minutes before I can actually send messages to a subscribed device. PS, is there a forum or something where I should ask question. I have the feeling i should not post it under issues. |
…rom topics. Fully resolves #422. Rationalise plugin result callbacks and error handling.
…ng from topics. Partially resolves #422. Rationalise plugin result callbacks and handling of async task results.
…rom topics. Fully resolves #422. Rationalise plugin result callbacks and error handling.
@dpa99c I get "Task failed for unknown reason" error from .subscribe now. But seems like the subscribe is actually successful and the app can receive messages after the error. |
Documentation issue
What happens when the methods do not work.
E.g. if subscribe fails how can one detect it, as the return type is void according to https://github.com/dpa99c/cordova-plugin-firebasex/blob/master/types/index.d.ts#L55
The text was updated successfully, but these errors were encountered: