Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are iOS app extensions actually supported? #87

Closed
mobilekosmos opened this issue Jan 31, 2017 · 3 comments
Closed

Are iOS app extensions actually supported? #87

mobilekosmos opened this issue Jan 31, 2017 · 3 comments

Comments

@mobilekosmos
Copy link

We were intensively trying to make the code, that already works in the app itself, work in our app extension (document provider) without any luck. With the dropbox SDK it was not a problem, do you actually support app extensions? I could not find any example/documentation specific for app extensions.

@thomasvl
Copy link
Member

Can you expand on what problems you are seeing? There shouldn't be anything directly in GTLR that has issues with iOS extensions, the gtm-session-fetcher can be a little more tricky to use because of the support it has for background tasks to ensure operations complete when the user leaves the app.

@thomasvl
Copy link
Member

thomasvl commented Feb 2, 2017

Scratch that, I'm guessing you are hitting the background task support within GTLR. Sorry, I've been looking at the one in SessionFetcher lately and was focused on that.

Yes, this code can be used (via the defines) an in extension, but CocoaPods doesn't make it overly easy. I think some of the logic done in google/gtm-session-fetcher#70 could be raised to this level to help simplify things. We'll try to get some time to look at it or someone else can look and send in a PR for it.

@thomasvl
Copy link
Member

The v1.2.1 included the change that should have made working with extensions much simpler. There is still a preprocessor define to strip the support, but without doing that, there are no direct calls to +[UIApplication sharedApplication], and runtime checks are done instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants