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

AppAuth: sharedApplication is unavailable (extensions) #365

Closed
perry-mitchell opened this issue Aug 6, 2019 · 2 comments
Closed

AppAuth: sharedApplication is unavailable (extensions) #365

perry-mitchell opened this issue Aug 6, 2019 · 2 comments

Comments

@perry-mitchell
Copy link

perry-mitchell commented Aug 6, 2019

Issue

I've gotten react-native-app-auth to work perfectly in the simulator on both iOS and Android. When trying to build & archive for release, however, I get the following error:

image

I'm building a mobile app with an extension, and I guess this is why AppAuth is dying. Would anyone know of a workaround for this?

My Podfile:

# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

target 'BCAutoFillExtension' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for BCAutoFillExtension
  pod 'AppAuth', '0.95.0'

end

target 'Buttercup' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Buttercup
  pod 'AppAuth', '0.95.0'

end

Versions:

{
	"react-native": "^0.57.1",
    "react-native-app-auth": "^4.4.0"
}

Environment

  • Your Identity Provider: Google
  • Platform that you're experiencing the issue on: iOS
  • Are you using Expo? No
@perry-mitchell perry-mitchell changed the title Framework not found AppAuth AppAuth: sharedApplication is unavailable (extensions) Aug 6, 2019
@perry-mitchell
Copy link
Author

Not sure how to get around this. There's an issue on AppAuth referencing AppAuth and AppAuth/Core to separate concerns for extensions (openid/AppAuth-iOS#198) - is this handled by this library at all?

codynguyen pushed a commit to codynguyen/react-native-app-auth that referenced this issue Nov 22, 2019
From https://github.com/openid/AppAuth-Android/releases

Minor bug fixes:
- Synchronizes multiple actions when requiring token refresh (FormidableLabs#332)
- Make handling of non-standard expires_at more tolerant (FormidableLabs#336)
- Changes related to Android tool changes between v25 and v27 (FormidableLabs#341, FormidableLabs#363)
- Fix encoding of client ids and secrets for auth (FormidableLabs#345)
- Handle CustomTabsSession.newSession failures (FormidableLabs#362)
- Do not automatically pass scope on token exchange request (FormidableLabs#364)
- Do not override tab title setting (FormidableLabs#365)
- Respect default browser of the user correctly (FormidableLabs#379)
- Updated custom tab definitions, including Firefox (FormidableLabs#378, FormidableLabs#383)
@Jay-A-McBee
Copy link
Contributor

Jay-A-McBee commented Feb 3, 2022

👋 hey @perry-mitchell - I'm assuming that you found a solution to your problem, but I checked out the AppAuth-ios extension example, and it looks like your Podfile declaration is off for the extension. Closing this out as it looks like this app has react-native-app-auth as a dependency.

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