Skip to content

A thin layer on top of Ionic Portals

Notifications You must be signed in to change notification settings

egym/web-portal-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebPortal

WebPortal is a thin layer on top of ionic-portals. It enables micro web app suppport in the iOS app

SPM Compatible Supports iOS 13 and up

Table of Contents

Introduction

  • WebPortal allows easy setup of ionic-portals 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

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