An open API service indexing awesome lists of open source software.

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

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


SPM Compatible
Supports iOS 13 and up

## 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_