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

Making reverse platform method calls from an ios widget #1

Open
andrewpmoore opened this issue Jan 28, 2023 · 1 comment
Open

Making reverse platform method calls from an ios widget #1

andrewpmoore opened this issue Jan 28, 2023 · 1 comment

Comments

@andrewpmoore
Copy link

Thanks for the sample, it's really handy. Do you know if the same is possible from an ios homescreen widget. I'm not too familiar with swift/ native ios development and can't work out how to use do it from a widget extension.

@ben-xD
Copy link
Owner

ben-xD commented Jan 29, 2023

Hi Andrew, have you already written a home screen widget? https://pub.dev/packages/home_widget and https://stackoverflow.com/q/69195243/7365866 seem useful. What's your use case?

I guess you want iOS support for https://pub.dev/documentation/home_widget/latest/home_widget/HomeWidget/registerBackgroundCallback.html

Side note: You might already be aware, it doesn't look possible to write iOS home-screen widgets using Flutter Widgets.

Another side note: This could be a stack overflow question or a comment on the https://stackoverflow.com/questions/64809293/how-do-i-use-a-flutter-methodchannel-to-invoke-a-method-in-dart-code-from-the-na/70053930#70053930

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants