urbanairship / airship-flutter

Flutter integration
Other
17 stars 16 forks source link

[WIP][MOBILE-2196] Draft PR for background isolates #84

Closed Ulrico972 closed 2 years ago

Ulrico972 commented 3 years ago

I make this draft PR with what we have for now. Sorry unfortunately it's not fully working yet and it's still kind of ugly lol. I like flutter pretty much but I think it does not like me back. In this PR I tried to adapt what flutter present as an example usage of background isolates. But I'm worried about this example, maybe it hasn't been updated with the new Isolates elements, I'm not sure.

I just show logs for the moment but then we'll be able to execute things by FlutterChannelMethod for example if we add a method name in the push payload or something like this.

There is also some commented code. That's because I had issues to have things in there own FlutterPlugin, so I moved them directly in the Airship plugin in order to make it work. There is also some commented code I converted to swift because of some difficulties I had to use objective-C code from the Airship plugin in some places.

Let me know if you have any idea that can help.

What do these changes do?

Why are these changes necessary?

How did you verify these changes?

Verification Screenshots:

Anything else a reviewer should know?