Git Product home page Git Product logo

ionic-portals-ios's Introduction


⚡️ A supercharged native Web View for iOS ⚡️

SPM Compatible Supports iOS 13 and up

Follow @ionicframework


Ionic Portals is a supercharged native Web View component for iOS and Android that lets you add web-based experiences to native mobile apps. It enables native and web teams to better collaborate and bring new and existing web experiences to mobile in a safe, controlled way.

Getting Started

See our docs to get started with Portals.

Registration

The Ionic Portals libraries for Android and iOS require a free license key to use. Once you have integrated Portals into your project, login to your ionic account to get a key. See our doc on how to register for free and get your Portals license key and refer to the Android or iOS getting started guides to see where to add your key.

FAQ

What is the pricing for Portals use?

Businesses with more than USD $1 million in annual revenue are required to purchase a license from Ionic before using Portals in production.

Is Portals Open Source?

See our license.

How is Portals Related to Capacitor and Ionic?

Ionic Portals is a solution that lets you add web-based experiences to your native mobile apps. Portals uses Capacitor as a bridge between the native code and the web code to allow for cross-communication between the two layers. Because Portals uses Capacitor under the hood, you are able to use any existing Capacitor Plugins while continuing to use your existing native workflow.

Ionic Framework is the open-source mobile app development framework that makes it easy to build top quality native and progressive web apps with web technologies. Your web experiences can be developed with Ionic, but it is not necessary to use Portals.

ionic-portals-ios's People

Contributors

giralte-ionic avatar jthoms1 avatar msrutek-paylocity avatar nathanwalker avatar steven0351 avatar thomasvidas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ionic-portals-ios's Issues

Mac Catalyst support

Are there any plans to support Catalyst?

At the moment, it fails to compile when building for a Mac target under Catalyst.
Screen Shot 2022-08-12 at 8 53 58 AM

iOS: 0.5.0 Swift runtime error

Installed the following pod: 'IonicPortals', '~> 0.5.0'
Got 2 runtime errors in XCode:
Schermafbeelding 2022-04-12 om 10 25 53
Schermafbeelding 2022-04-12 om 10 25 39
Help would be appreciated. Thanks in advance.

More info:
Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '13.0'

use_frameworks!
use_modular_headers!

def shared_pods
    pod 'Firebase/Crashlytics'
    pod 'Firebase/Analytics'
    pod 'IonicPortals', '~> '0.5.0'
end

target "Core" do
    pod 'RxSwift', '~> 5.1.1'
    pod 'RxCocoa', '~> 5.1.1'
    pod 'RxDataSources', '~> 4.0.1'
    pod 'loady'
    shared_pods
end

target "HIP" do
    pod 'Batch', '~> 1.15'
    shared_pods
end

target "CoreTests" do
    inherit! :search_paths
    pod 'RxBlocking', '~> 5.1.1'
    pod 'RxTest', '~> 5.1.1'
end

Xcode Project:
Deployment target: iOS 13+

Carthage xcframework error

I drag IonicPortals.xcframework and Capacitor.xcframework into my project, but the following error occurred when I was running the app.
dyld[48160]: Symbol not found: _$s9Capacitor10CAPWebViewC18instanceDescriptorSo011CAPInstanceE0CyFTq
Referenced from: /Users/aragon-mini/Library/Developer/Xcode/DerivedData/IonicPortalDemo-cajlunqdxyxpbkctwamxtaqoiowo/Build/Products/Debug-iphonesimulator/IonicPortals.framework/IonicPortals
Expected in: /Users/aragon-mini/Library/Developer/Xcode/DerivedData/IonicPortalDemo-cajlunqdxyxpbkctwamxtaqoiowo/Build/Products/Debug-iphonesimulator/Capacitor.framework/Capacitor
Symbol not found: _$s9Capacitor10CAPWebViewC18instanceDescriptorSo011CAPInstanceE0CyFTq
Referenced from: /Users/aragon-mini/Library/Developer/Xcode/DerivedData/IonicPortalDemo-cajlunqdxyxpbkctwamxtaqoiowo/Build/Products/Debug-iphonesimulator/IonicPortals.framework/IonicPortals
Expected in: /Users/aragon-mini/Library/Developer/Xcode/DerivedData/IonicPortalDemo-cajlunqdxyxpbkctwamxtaqoiowo/Build/Products/Debug-iphonesimulator/Capacitor.framework/Capacitor
I use xcode 13 and my machine is Mac mini (M1, 2020) with MacOS Monterey (12.2.1).

Linking-error when building for iOS-simulator

Dear Ionic-team,

Ionic-portals works great when I build for a physical iPhone, however, I get the following linker-error when trying to build for an iOS-simulator:

ld: warning: ignoring file /Users/felix/project-ios/Pods/IonicLiveUpdates/IonicLiveUpdates.xcframework/ios-arm64/IonicLiveUpdates.framework/IonicLiveUpdates, building for iOS Simulator-x86_64 but attempting to link with file built for iOS-arm64
Undefined symbols for architecture x86_64:
"static IonicLiveUpdates.LiveUpdateManager.getLatestAppDirectory(Swift.String) -> Foundation.URL?", referenced from:
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"type metadata accessor for IonicLiveUpdates.LiveUpdateManager", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"static IonicLiveUpdates.LiveUpdateManager.cleanVersions(Swift.String?) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
(maybe you meant: default argument 2 of static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> (), default argument 1 of static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> () )
"static IonicLiveUpdates.LiveUpdateManager.setupAppInstancesWithoutSync() -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"static IonicLiveUpdates.LiveUpdateManager.addLiveUpdateInstance(IonicLiveUpdates.LiveUpdate) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"IonicLiveUpdates.LiveUpdate.appId.getter : Swift.String", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"nominal type descriptor for IonicLiveUpdates.LiveUpdate", referenced from:
_symbolic _____Sg 16IonicLiveUpdates0B6UpdateC in Portal.o
_symbolic _____Sg 16IonicLiveUpdates0B6UpdateC in PortalBuilder.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The following Xcode-screenshot contains more details:
portals-build-error2

The same error happened for both Portals-0.5.0 and Portals-0.4.2.

I use Xcode 13.2.1.
My machine is an x86-based iMac with macOS Big Sur 11.5.2.

Please let me know if you already experienced this issue before.

Outdated live updates in CocoaPods

Although the dependency to live updates has been bumped in #45, due to the way CocoaPods work, it still uses an old Podspec.

Please, release a new version, so that the changes can be picked up by CocoaPods.

FR: Swift Package Manager support

We would love to use Portals in a larger project, but the dependency on Cocoapods is a deal breaker.

Is there any plans on supporting SPM for iOS builds?

Regression of Blank screen on simulator sdk #46

Regression of this issue? #46

Seems that this issue is back with the latest version of IonicPortals.
Console log in xcode says: ⚡️ Loading app at capacitor://localhost but blank screen in Simulator, on local device it works fine.

Linking-error when building for iOS-simulator

Dear Ionic-team,

Ionic-portals works great when I build for a physical iPhone, however, I get the following linker-error when trying to build for an iOS-simulator:

ld: warning: ignoring file /Users/felix/project-ios/Pods/IonicLiveUpdates/IonicLiveUpdates.xcframework/ios-arm64/IonicLiveUpdates.framework/IonicLiveUpdates, building for iOS Simulator-x86_64 but attempting to link with file built for iOS-arm64
Undefined symbols for architecture x86_64:
"static IonicLiveUpdates.LiveUpdateManager.getLatestAppDirectory(Swift.String) -> Foundation.URL?", referenced from:
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"type metadata accessor for IonicLiveUpdates.LiveUpdateManager", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"static IonicLiveUpdates.LiveUpdateManager.cleanVersions(Swift.String?) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
(maybe you meant: default argument 2 of static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> (), default argument 1 of static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> () )
"static IonicLiveUpdates.LiveUpdateManager.setupAppInstancesWithoutSync() -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"static IonicLiveUpdates.LiveUpdateManager.addLiveUpdateInstance(IonicLiveUpdates.LiveUpdate) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"IonicLiveUpdates.LiveUpdate.appId.getter : Swift.String", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"nominal type descriptor for IonicLiveUpdates.LiveUpdate", referenced from:
_symbolic _____Sg 16IonicLiveUpdates0B6UpdateC in Portal.o
_symbolic _____Sg 16IonicLiveUpdates0B6UpdateC in PortalBuilder.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The following Xcode-screenshot contains more details:
portals-build-error2

The same error happened for both Portals-0.5.0 and Portals-0.4.2.

I use Xcode 13.2.1.
My machine is an x86-based iMac with macOS Big Sur 11.5.2.

Please let me know if you already experienced this issue before.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.