-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
integrate the flutter_appavailability #266
Comments
@fredfalcon What's this issue about? Show installed apps in our app? |
Yes for reporting bugs about apps using identifiers like com.blt.apps |
i can do this please assign this issue to me |
Done. @WaniAthar |
the package you mentioned(flutter_appavailability) uses a deprecated version of the Android embedding |
Yes please use a current package thanks |
do i have to only show the installed apps on a new screen? |
It would be when you report a bug. So the address / url will be an autocomplete |
whenever i run the app it gets stuck on i am using flutter 3 |
See if ChatGPT4 can help |
can i create a new project and copy all the files to the new project? |
If you think that will help, sure. I think you could just talk it out with ChatGPT too and solve it faster. |
ok ill try to fix this |
when a certain app is tapped from the listBuilder its name gets stored in _titleController's text field or I can change it to "app_name (com.example.app)" |
Let's store the name but also the identifier on a hidden field |
hidden field? |
The user does not need to see it. The title would be fine but I think when we send the data to the API, we should have the title and the identifier and the platform when we add the issue. |
It's fine to show them |
shall i make a pr now |
one thing to mention is that the package(device_apps) used for retrieving the app metadata (icon, name, and packageId ) is only available for Android right now, I have put a condition in the code that if the platform is android then show the app list |
yes, cool. Is there any way to get this on iOS too? Maybe we can connect to the API and pull the app names and identifiers to use in the autocomplete - just to confirm the field is an autocomplete right and not a dropdown? |
it is a dropdown |
Can you please make it an autocomplete so that people can manually enter the name as well, this will also keep the existing functionality to enter a url |
working on it |
i have added the auto complete functionality to both the screens,(report and the Bug hunt) video6116362475538483139.mp4 |
did you review the PR, please let me know if there is something more to add or change. |
Hello @fredfalcon @just-ary27 i noticed a bug in the slider in bug hunt screen, did you notice? |
/assign |
You are already assigned to another open issue, please wait until until it's closed or remove your assignment to get assigned to this issue. |
@fredfalcon @just-ary27 please review the PR so that i can solve other issues |
/assign |
It looks like this didn't make it in to the code, it's still a useful feature. |
Related to #266 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/OWASP-BLT/BLT-Flutter/issues/266?shareId=XXXX-XXXX-XXXX-XXXX).
To integrate the
flutter_appavailability
package into your app, you can follow these steps:flutter_appavailability
package to your project by adding the following line to yourpubspec.yaml
file:getInstalledApps()
method to get a list of installed apps on the device:In this example, we're using the
getInstalledApps()
method from theflutter_appavailability
package to get a list of all installed apps on the device. ThegetInstalledApps()
method returns aList<Application>
object containing information about each installed app, such as the app name, package name, and icon.In this example, we're using a
ListView.builder
widget to display the list of installed apps in a scrollable list. Each app is displayed as aListTile
widget, with the app icon, name, and package name shown.You can use the installed app list to provide additional information when reporting an issue in your app. For example, you could ask the user to select the app they were using when the issue occurred, and include this information in the bug report.
Note that the
getInstalledApps()
method can take a long time to complete on devices with many installed apps, so you should consider using a loading indicator while the list is being fetched.The text was updated successfully, but these errors were encountered: