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

add on new intent override plugin for expo android #579

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f0wu5u
Copy link

@f0wu5u f0wu5u commented Sep 18, 2024

In reaction to this issue #558 and this closed PR #559.

This adds the;

import android.content.intent

override fun onNewIntent(intent: Intent?) {
    super.onNewIntent(intent)
    setIntent(intent)
  }

by default if import android.content.intent is not already in MainActivity and if override fun onNewIntent(intent: Intent?) is not already implemented.

This ultimately resolves issue with expo android not opening deeplinks when app is in background

cc: @iway1

@f0wu5u f0wu5u force-pushed the patch/expo-android-on-new-intent-override branch from 2ada035 to 1a3ba77 Compare September 18, 2024 14:50
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

Successfully merging this pull request may close these issues.

1 participant