Closed psatler closed 1 year ago
@psatler Thank you for providing a repo to reproduce the issue we are investigating
Hey @sur2548 , thanks for the suggestion! I have tried adding this but my release build continued to throw the same exceptions shown above. The issue I'm facing is also happening on debug and profile mode builds, though.
One thing I noticed @emawby is that if I run the app without using the addTags
(or addTagWithKey
) it runs without issues even after stopping and running it again. However, if I use one of those methods, and stop and run the app again, then it starts to throw the exception I showed in the original post above.
I updated the Github repo with these changes so that you can trigger the addTags
by pressing the increment counter button. (also shown in this new video below)
@psatler Thank you for the investigation that is helpful! There are multiple Android crash fixes coming in the next flutter release that may address this, but I have not reproduced this in my own test app so I cannot confirm. We will continue investigating.
No problem @emawby Thanks for the attention and I'm looking forward to the next release. In the meantime, I will continue investigating and if I find something new on my end, I will post it here.
Tested again on version 5.0.4
and the exception did not happen anymore. Therefore, I'll close the issue for now.
Thanks!
@psatler what do you mean, version 5.0.4, flutter or what ?
@psatler what do you mean, version 5.0.4, flutter or what ?
Version 5.0.4
of the OneSignal SDK @diallomatine
What happened?
The Flutter OneSignal SDK version
5.0.3
is throwing missing plugin exceptions when running on Android. This is similar (if not equal) to this other issue https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/742#issuecomment-1722180113The first time you install the app, it works as expected. However, if you stop the app and rerun it again, it starts to show the exceptions.
I created a repo so you can clone and try to reproduce it yourself. Below is also a video showing the problem found.
https://github.com/OneSignal/OneSignal-Flutter-SDK/assets/3421410/d4fd8187-659a-4c18-ada4-b4ad48ac06cc
PS: IOS is working fine so I did not set it up in the aforementioned repository.
Steps to reproduce?
Code of Conduct