flutter-bkash icon indicating copy to clipboard operation
flutter-bkash copied to clipboard

Update allowed URL in WebView

Open imSaharukh opened this issue 1 year ago • 0 comments

Fixes issue #12.

Problem

The issue was identified as a result of this reported problem, where the WebView was encountering a blank white screen on iOS. The root cause was traced back to the incorrect handling of URLs in the code.

Solution

The proposed solution corrects the URL validation logic. Previously, the code used request.url.startsWith("https://www.bkash.com/"), which proved to be incorrect. The fix now considers that sandbox URLs start with https://sandbox.payment.bkash.com, and live URLs start with https://payment.bkash.com.

Changes Made

imSaharukh avatar Nov 26 '23 18:11 imSaharukh