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 necessary overrides in MainActivity #1051

Merged
merged 3 commits into from
Nov 3, 2022
Merged

Conversation

sigged
Copy link
Contributor

@sigged sigged commented Nov 2, 2022

The docs at https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/appmodel/app-actions?tabs=android on App Actions seem to have an incomplete MainActivity code sample for Android.
The App Actions do not get triggered unless the app is already running.

Adding the suggested overrides for OnResume() and OnNewIntent() to MainActivity remedies this.

@dnfadmin
Copy link

dnfadmin commented Nov 2, 2022

CLA assistant check
All CLA requirements met.

Copy link
Contributor

@davidbritch davidbritch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sigged

@davidbritch davidbritch merged commit 3152248 into dotnet:main Nov 3, 2022
conceptdev added a commit that referenced this pull request Nov 3, 2022
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.

3 participants