Comments (5)
The framework cannot compile in iOS app extension due to UIApplication.shared
code
How do you achieve to make it work with device unlocked?
(maybe you compile the framework without extension context and use it for both, app and extension)
the link you post it's not pure iOS but Xamarin
I think there is also an issue with application name, taken from main bundle
To fix the compile issue a compilation flag could be added to replace the current code by one using NSExtensionContext
like I do here
https://github.com/OAuthSwift/OAuthSwift/wiki/Work-with-application-extension
for cocoapod I will update the demo podfile as example
https://github.com/phimage/CallbackURLKit/blob/master/SampleApp/Podfile
from callbackurlkit.
I don't use CocoaPods. I added CallbackURLKit to my project as a subproject and added CallbackURLKit.framework to both my app and my today extension's target in the section Linked Frameworks and Libraries. This way it compiles for both with no issues.
from callbackurlkit.
I suppose that app extension has underneath also the UIApplication.shared
attribute
(apple could call this using hidden and private API, event if it is not on purpose)
from callbackurlkit.
I add a compilation flag APP_EXTENSIONS
an instance of NSExecutionContext in Manager to open URLs
No tested yet
For carthage maybe the only possibility is to create a new shared scheme with a new target with specific name
from callbackurlkit.
Closed for no activity
from callbackurlkit.
Related Issues (15)
- Two way communication HOT 12
- macOS 10.13 Issue HOT 4
- 'Manager' is not descriptive or unique enough. HOT 1
- Release HOT 4
- Unable to install CallbackURLKit via CocoaPods HOT 12
- response path should be prefixed with "/" when building callback URLs HOT 1
- client.perform() never reaches onSuccess HOT 9
- Update Demo App HOT 1
- New tag for updated package.swift for Accio support HOT 1
- Any plans of keeping this library updated? HOT 1
- Ampersands in callback URL query strings should be percent-encoded. HOT 4
- Explicit handlers for success and error callbacks HOT 3
- Swift Package will not build in Xcode 13 (beta 3+) HOT 3
- Request ID not transmitted in responses HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from callbackurlkit.