Skip to content

Getting "Unable to detect current Activity." when triggered "Permission.notification.request();" in my application. #1141

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

Closed
3 of 5 tasks
Ruby6851 opened this issue Sep 5, 2023 · 3 comments
Labels
group: app-to-app Issues are all based around add-to-app feature of Flutter. P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. type: enhancement New feature or request

Comments

@Ruby6851
Copy link

Ruby6851 commented Sep 5, 2023

Please check the following before submitting a new issue.

Please select for which platform(s) you need help

  • Android
  • iOS
  • Windows

Your question

I am using Flutter as a module within my native application. When I trigger Permission.notification.request(), I encounter the 'Unable to detect current Activity' error.
However, when I run my Flutter project as a standalone application (not embedded within a native app), it works fine.

Version

10.4.3

@JeroenWeener
Copy link
Contributor

Hi @Ruby6851, thank you for reaching out!

This is an interesting issue. We do not yet actively support this use case, but are open to do so. For that, we need to do some investigation to see if it is possible in the first place.

We are not too familiar with running Flutter inside native apps. You would help us out a ton by providing an example project showcasing the add-to-app architecture. If you can find the time, could you provide us with a GitHub repo that houses the use case?

Happy to hear from you!

@JeroenWeener JeroenWeener added platform: android Issue is related to the Android platform. type: enhancement New feature or request P2 Important issues not at the top of the work list. labels Sep 7, 2023
@ChristianEdwardPadilla
Copy link
Contributor

A potentially related issue:
#552

I'm not aware of anything that a plugin like this should need to do to support the add2app use case (a growing use case for Flutter, IMO): https://docs.flutter.dev/add-to-app

@JeroenWeener JeroenWeener added the group: app-to-app Issues are all based around add-to-app feature of Flutter. label Nov 16, 2023
@JeroenWeener
Copy link
Contributor

I am closing this issue as there has been no activity recently.

@JeroenWeener JeroenWeener closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group: app-to-app Issues are all based around add-to-app feature of Flutter. P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants