https://github.com/egym/web-portal-ios
A thin layer on top of Ionic Portals
https://github.com/egym/web-portal-ios
tier-4 trainer
Last synced: 4 months ago
JSON representation
A thin layer on top of Ionic Portals
- Host: GitHub
- URL: https://github.com/egym/web-portal-ios
- Owner: egym
- Created: 2022-09-26T11:41:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-11-13T09:51:14.000Z (8 months ago)
- Last Synced: 2025-11-13T11:27:36.717Z (8 months ago)
- Topics: tier-4, trainer
- Language: Swift
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 24
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebPortal
> WebPortal is a thin layer on top of [ionic-portals](https://github.com/ionic-team/ionic-portals-ios). It enables micro web app suppport in the iOS app
## Table of Contents
* [Introduction](#introduction)
* [External Dependencies](#external-dependencies)
* [Setup](#setup)
* [Usage](#usage)
* [Project Status](#project-status)
## Introduction
- WebPortal allows easy setup of [ionic-portals](https://github.com/ionic-team/ionic-portals-ios) in the EGYM iOS apps and provides well-defined topics for publishing and subscribing
- This project can be used as a swift package and allows to share ionic-portal setup code among EGYM iOS apps
## External Dependencies
- [ionic-portals](https://github.com/ionic-team/ionic-portals-ios) - from v0.6.4
## Setup
- Swift Package (recommended)
- git submodules
## Usage
The web portal communicate with micro web app via Publisher Subscriber design pattern.
Publishing topics:
```
public enum PublishTopic: String, Codable {
case authToken
case error
case exerciserInfo
case openWebView
case trainerInfo
}
```
Subscribing topics:
```
public enum CallbackType: String, Codable {
case authToken
case exerciserInfo
case dismiss
case openFeature
case openUrlExternally
case openWebView
case trainerInfo
}
```
## Project Status
Project is: _in progress_