WebPortal is a thin layer on top of ionic-portals. It enables micro web app suppport in the iOS app
- 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
- ionic-portals - from v0.6.4
- Swift Package (recommended)
- git submodules
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 is: in progress