Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trustlyinc/trustly-webview-example
Simple hybrid-platform example app using the Trustly Javascript library with native iOS and Android mobile apps.
https://github.com/trustlyinc/trustly-webview-example
android ios kotlin react reactjs swift webview
Last synced: 2 months ago
JSON representation
Simple hybrid-platform example app using the Trustly Javascript library with native iOS and Android mobile apps.
- Host: GitHub
- URL: https://github.com/trustlyinc/trustly-webview-example
- Owner: TrustlyInc
- License: mit
- Created: 2023-01-10T21:16:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T18:36:08.000Z (11 months ago)
- Last Synced: 2024-05-07T18:05:19.276Z (9 months ago)
- Topics: android, ios, kotlin, react, reactjs, swift, webview
- Language: Kotlin
- Homepage:
- Size: 688 KB
- Stars: 6
- Watchers: 4
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Trustly Mobile Webview Example App
This project is provided as an example of integration between a web app serving the Trustly UI and mobile apps that render that web app from a webview. Specifically, this example focuses on successfully handling OAuth and App-to-App bank authorization user flows. The repository can be used alongside Trustly's [Mobile App Webview tutorial](https://amer.developers.trustly.com/payments/docs/oauth-for-mobile-apps).
## The Web App
The `react-web-app` directory contains a simple React app that displays a "Pay with Trustly" button which launches the Lightbox. Instructions for running this app can be found in that directory's [ReadMe](./react-web-app/README.md).
## The iOS App
The `ios-app` directory contains a simple Swift app that renders a Webview of a given URL. With the above React app running, the iOS app can be pointed to the resulting URL to demonstrate the webview and secure-in-app-browser functionality required to successfully integrate the two applications. Additional instructions can be found in that directory's [ReadMe](./ios-app/README.md).
## The Android App
The `android-app` directory contains a simple Kotlin app that renders a Webview of a given URL. With the above React app running, the Android app can be pointed to the resulting URL to demonstrate the webview and secure-in-app-browser functionality required to successfully integrate the two applications. Additional instructions can be found in that directory's [ReadMe](./android-app/README.md).
# Contributing
You can participate in this project by submitting bugs and feature requests in the [Issues](https://github.com/TrustlyInc/trustly-webview-example/issues) tab. Please, add [@lukevance](https://github.com/lukevance) as an assignee.
If you are interested in fixing issues and contributing directly to the code base, feel free to open a Pull Request with your changes. Please, make sure to fulfill our [Pull Request Template](https://github.com/TrustlyInc/trustly-webview-example/blob/main/.github/pull_request_template.md) and add [@lukevance](https://github.com/lukevance) as code reviewer.