TBD54566975 / didpay

Mobile app that provides a way for individuals to interact with PFIs via tbDEX
Apache License 2.0
6 stars 6 forks source link

Fix flutter web crash #297

Closed ethan-tbd closed 1 month ago

ethan-tbd commented 2 months ago

Currently, running didpay using flutter web results in the following error:

Rejecting promise with error: TypeError: Cannot set properties of undefined (setting 'nativeCommunication')

Fix the error by adding the flutter_inappwebview_web package and editing web/index.html (hint: follow the thread here https://github.com/pichillilorenzo/flutter_inappwebview/issues/1468)

victoreronmosele commented 1 month ago

.take

github-actions[bot] commented 1 month ago

Thanks for taking this issue! Let us know if you have any questions!

victoreronmosele commented 1 month ago

@ethan-tbd, the crash no longer occurs after your recent PR.

The web app now loads without a crash.

Screenshot of the DIDPay app after loading successfully
ethan-tbd commented 1 month ago

@victoreronmosele you're right, looks like the error detailed in this issue was fixed by updating flutter_inappwebview here. will close out this issue