Skip to content
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

[iOS] Subscription to Hub methods is triggered only on Hub connection #15

Closed
LukaszSadoch opened this issue Nov 25, 2020 · 3 comments
Closed
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@LukaszSadoch
Copy link

It is not possible to subscribe to methods after establishing a connection via Hub - and thus events are not returned from Webview to the app.

Calling subscribeToHubMethod does not generate any error, but no message is returned to the flutter application

@LukaszSadoch
Copy link
Author

LukaszSadoch commented Nov 25, 2020

Suggestion of changes:

to file ios/Classes/SwiftR.swift:470 add:
connection.runJavaScript("addHandler('\(callbackID)', '\(name)', '\(method)')")

@AyonAB AyonAB self-assigned this Nov 29, 2020
@AyonAB AyonAB added the bug Something isn't working label Nov 29, 2020
@AyonAB
Copy link
Contributor

AyonAB commented Nov 29, 2020

Okey, I haven't got time to test fully on ios after the recent changes. I applied your solution but its still not returning events for me. I think it needs more investigation.

@AyonAB AyonAB added the help wanted Extra attention is needed label Jan 6, 2021
@AyonAB
Copy link
Contributor

AyonAB commented Jan 19, 2021

Fixed this issue in latest pre release 0.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants