Cap-go / capacitor-inappbrowser

Capacitor plugin in app browser with urlChangeEvent
MIT License
66 stars 48 forks source link

[Feature Request] Custom Request Method, and Body #99

Open liho00 opened 9 months ago

liho00 commented 9 months ago

Use case: Open in app browser from current logged in user to access third party web resources including view, download online reports.

Example of react native webview

        <WebView
          source={{
            method: 'POST',
            headers: { 'Content-Type': 'application/x-www-form-urlencoded', },
            body: 'token=' + token,
            uri: 'https://api.mock.com',
          }}
          onLoadStart={() => this.showSpinner()}
          onLoad={() => this.hideSpinner()}
        />

Can I request this feature in capacitor in app browser?

References: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#source

riderx commented 8 months ago

Thanks for the report i think it's doable, currently i cannot work on that. but if you are willing to support the request feature a member of the community will do it for sure ! https://console.algora.io/bounties/new