Closed tashiwangdi closed 4 years ago
Do you have a link to a repository I can look at? That channel should always be available after a hot restart since the native iOS state doesn't get reset. I'm also not seeing that in the Obj-C implementation so I suspect something is different in your implementation.
I checked out your repo and installed the example app. I will check again to see if I ran the correct example or something missing/wrong in my setup. Sorry if my comment was confusing.
I just checked the repo url:
tashis-mbp:ios tashiwangdi$ git config --get remote.origin.url
git@github.com:bkonyi/FlutterGeofencing.git
When you say "Swift version" do you mean an implementation of this plugin in Swift or that your Flutter application uses Swift?
We ran the example app in your repo - https://github.com/bkonyi/FlutterGeofencing and encountered the MissingPluginException
. The stacktrace above is for the same example app.
@bkonyi : Could this comment be related - https://github.com/flutter/flutter/issues/12956#issuecomment-343309685 ? This one talks about android but could the statement - life span of the Dart isolate is 1-1 with that of the FlutterView
be related in this case? Please pardon my ignorance if it is completely out of context.
@tashiwangdi sorry for the delay, I've been OOO for a few days. I'll take a closer look sometime in the next day or two.
Thanks for getting back @bkonyi . Eager to know about your observations on the same.
Hello, @bkonyi ! Is there any updates ? Facing the same issue iPhone 7+, iOS 11.4.1
Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15.1 19B88)
• Flutter version 1.9.1+hotfix.6
• Framework revision 68587a0916 (3 months ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
Sorry all, I've been pretty swamped the past few weeks. I'll investigate this weekend, I promise!
Hi all, thanks for your patience. I've just tried a hot restart in the example application and I don't seem to be running into the same error, at least on the simulator (don't have access to an actual device at the moment). Do you happen to have code that I can try to use to reproduce myself?
Hi @bkonyi. Nice that you looked into it. Which version of Flutter did you use? IIRC We tested with v1.9.1+hotfix.6 from the stable channel. Maybe something was fixed in the latest release? I don't have access to a Mac at the moment. We can retest this next week.
Hi @bkonyi. Nice that you looked into it. Which version of Flutter did you use? IIRC We tested with v1.9.1+hotfix.6 from the stable channel. Maybe something was fixed in the latest release? I don't have access to a Mac at the moment. We can retest this next week.
Hm, I'm doubtful that something has been fixed but it might be worth updating to at least v1.12 on stable and giving that a shot. I tested this on master last week on an iOS simulator, so this could potentially be something that's only reproducible on a physical device. In that case, I'll have to try when I get back to the office next week and find my iOS device.
@bkonyi : We upgraded to latest stable - 1.12.13+hotfix.5 and it works now on both physical as well as the simulator. Closing the issue. Thank you for looking into this.
@bkonyi : Thank you for adding the fix for crash on hot restart. The fix for the issue - https://github.com/bkonyi/FlutterGeofencing/issues/24 fixes the crash. However, there is this MissingPluginException on hot restart that we have been struggling to get rid of. We tried the same approach to avoid the crash in our swift version but this
MissingPluginException
won't budge. Here is the stacktrace: