Skip to main content

Mobile Specifics

Firefox for iOS

tip

Skip this if you are not working on Firefox for iOS and FxA.

You can test sync locally in Firefox iOS using the XCode simulator. Follow the steps at github.com/mozilla/firefox-ios and setup firefox-ios build locally. Currently there is no way to dynamically switch servers in Firefox for iOS, to use local servers you need to run the script below:

FIREFOX_IOS_HOME=<path_to_firefox_ios_project> npm run config-fxios

After the script you need to rebuild firefox-ios.

Android debugging

The following technique works with any Android application and can also be used for Firefox for Android.

Simply forward the following ports from the host machine to the Android device:

npm run adb-reverse

or

adb reverse tcp:3306  tcp:3306  # MySQL server
adb reverse tcp:6379 tcp:6379 # redis
adb reverse tcp:4100 tcp:4100 # Fake SQS/SNS
adb reverse tcp:8085 tcp:8085 # google-pubsub-emulator
adb reverse tcp:9090 tcp:9090 # google-firestore-emulator
adb reverse tcp:5000 tcp:5000 # sync server
adb reverse tcp:8001 tcp:8001 # cirrus (experimenter)
adb reverse tcp:8000 tcp:8000 # auth-server db mysql
adb reverse tcp:9000 tcp:9000 # auth-server key server
adb reverse tcp:3030 tcp:3030 # content-server
adb reverse tcp:1111 tcp:1111 # profile-server
adb reverse tcp:9292 tcp:9292 # Fortress
adb reverse tcp:8080 tcp:8080 # 123done
adb reverse tcp:10139 tcp:10139 # 321done
adb reverse tcp:5050 tcp:5050 # browserid-verifier
adb reverse tcp:3031 tcp:3031 # payments server
adb reverse tcp:7100 tcp:7100 # support admin panel
adb reverse tcp:8002 tcp:8002 # pushbox
adb reverse tcp:3000 tcp:3000 # react app
adb reverse tcp:8290 tcp:8290 # graphql api

Then run yarn start and get to work!