Skip to content

Add https support for bundle download in Android #809

Open
@Michael-Aca

Description

@Michael-Aca

Introduction

Currently is not possible to add a custom bundle URL that uses https from the React Native Dev Menu (Bridge)

Details

The url to download the bundle is hardcoded to only support http, as can be seen here:
https://github.com/facebook/react-native/blob/4cc46e3ca6845bd353d0c732a3b0f7dd6ecac4a0/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java#L390
This prevents selecting a custom https url from the Change Bundle location dialog in the Dev Menu

Discussion points

It would be great if there was the option to switch to https or if it was done automatically according to the cleartextTrafficPermitted value set in the manifest for the selected host

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions