[Android/iOS] How to test Deep Link and Custom URL Scheme in development environment

Tadashi Shigeoka ·  Tue, May 14, 2019

I’ll introduce how to test Deep Link and Custom URL Scheme for Android and iOS apps in a development environment.

macOS

Background Knowledge

URL schemes like example://action are called Deep Link on Android and Custom URL Scheme on iOS.

How to Test Deep Link and Custom URL Scheme

Create index.html

Create a file like the following at ~/Documents/url_scheme/index.html.

  
    

example://action?id=yoW4Sei3

Python: Start SimpleHTTPServer Web Server

cd ~/Documents/url_scheme/
python -m SimpleHTTPServer 8000

Start ngrok

Start ngrok specifying Port 8000 as follows:

ngrok http 8000

If you haven’t used ngrok before, please refer to ngrok インストール、公開URL確認方法 [macOS 編].

Test on Android Emulator and iOS Simulator

Screenshot when testing on Android Emulator:

Deep Link | Android App

Screenshot when testing on iOS Simulator:

Custom URL Scheme | iOS App

That’s all from the Gemba, where we want to test Deep Link and Custom URL Scheme for Android and iOS apps in the development environment.