-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions to run capacitor app
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Ionic Capacitor Example App | ||
|
||
Example app of ionic app using capacitor. | ||
|
||
## Project config | ||
|
||
We need the following redirect uris to work: | ||
|
||
``` | ||
http://localhost:8100/reauth-redirect | ||
http://localhost:8100/oauth-redirect | ||
com.authgear.exampleapp.capacitor://host/path | ||
https://localhost | ||
capacitor://localhost | ||
``` | ||
|
||
## Run the app | ||
|
||
Before running the app, build the latest sdk at project root. | ||
|
||
```sh | ||
npm i | ||
npm run build | ||
``` | ||
|
||
Then, in this directory, run the exmaple app. | ||
|
||
```sh | ||
cd example/capacitor | ||
npm i | ||
# Run it in ios device | ||
npm run run-ios | ||
# OR, run it in android device | ||
npm run run-android | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters