Skip to content

Doc: ローカルホストで開発する方法 [Android] #7

@takumi1001

Description

@takumi1001

手段1: ngrokを使う

  • 便利
  • セキュリティ的に危ない

手段2: localhostを使う(エミュレータ)

  • AndroidManifest.xml<application>タグ属性にandroid:usesCleartextTraffic="true"を追加する。
  • URLをhttp://10.0.2.2:8000にする。

最初の設定はWebViewに非HTTP通信を許可する設定。リリース版では設定しないほうがいい?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions