From 725222ea2b38dd1b27ea6561fe83ae7dd81b5ba7 Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Wed, 17 Apr 2024 19:29:50 +0300 Subject: [PATCH 1/3] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 026a63606db0..2c2faf0e7d9b 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,17 @@ If you want to run the app on an actual physical iOS device, please follow the i ## Running the MacOS desktop app 🖥 * To run the **Development app**, run: `npm run desktop`, this will start a new Electron process running on your MacOS desktop in the `dist/Mac` folder. +## Receiving Notifications +To receive notifications on development build of the app, you need to use the production airship config. +### Android +1. Copy the [production config](https://github.com/Expensify/App/blob/d7c1256f952c0020344d809ee7299b49a4c70db2/android/app/src/main/assets/airshipconfig.properties#L1-L7) to the [development config](https://github.com/Expensify/App/blob/d7c1256f952c0020344d809ee7299b49a4c70db2/android/app/src/development/assets/airshipconfig.properties#L1-L8). +2. Rebuild the app. + +### iOS +1. Replace the [development key and secret](https://github.com/Expensify/App/blob/d7c1256f952c0020344d809ee7299b49a4c70db2/ios/AirshipConfig.plist#L7-L10) with the [production values](https://github.com/Expensify/App/blob/d7c1256f952c0020344d809ee7299b49a4c70db2/ios/AirshipConfig.plist#L11-L14). +2. Rebuild the app. + + ## Troubleshooting 1. If you are having issues with **_Getting Started_**, please reference [React Native's Documentation](https://reactnative.dev/docs/environment-setup) 2. If you are running into CORS errors like (in the browser dev console) From d2a38a211ea777d04ed09897bfe53f526efa05ed Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Wed, 17 Apr 2024 19:34:39 +0300 Subject: [PATCH 2/3] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 2c2faf0e7d9b..e493e4678d6f 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,6 @@ To receive notifications on development build of the app, you need to use the pr 1. Replace the [development key and secret](https://github.com/Expensify/App/blob/d7c1256f952c0020344d809ee7299b49a4c70db2/ios/AirshipConfig.plist#L7-L10) with the [production values](https://github.com/Expensify/App/blob/d7c1256f952c0020344d809ee7299b49a4c70db2/ios/AirshipConfig.plist#L11-L14). 2. Rebuild the app. - ## Troubleshooting 1. If you are having issues with **_Getting Started_**, please reference [React Native's Documentation](https://reactnative.dev/docs/environment-setup) 2. If you are running into CORS errors like (in the browser dev console) From db01cf5b4aa52069cf416d7a1a84ea3bdbfeea8f Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Wed, 17 Apr 2024 23:20:00 +0530 Subject: [PATCH 3/3] Update README.md Co-authored-by: Andrew Gable --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e493e4678d6f..8adadfc9cbe6 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ If you want to run the app on an actual physical iOS device, please follow the i * To run the **Development app**, run: `npm run desktop`, this will start a new Electron process running on your MacOS desktop in the `dist/Mac` folder. ## Receiving Notifications -To receive notifications on development build of the app, you need to use the production airship config. +To receive notifications on development build of the app while hitting the Staging or Production API, you need to use the production airship config. ### Android 1. Copy the [production config](https://github.com/Expensify/App/blob/d7c1256f952c0020344d809ee7299b49a4c70db2/android/app/src/main/assets/airshipconfig.properties#L1-L7) to the [development config](https://github.com/Expensify/App/blob/d7c1256f952c0020344d809ee7299b49a4c70db2/android/app/src/development/assets/airshipconfig.properties#L1-L8). 2. Rebuild the app.