Closed lmta1 closed 2 years ago
hello @lmta1, can you give code sample you have used and also try once in real device and see if you have same issue
Facing the same issue.
final isAppInstalled = await LaunchApp.isAppInstalled( androidPackageName: 'com.app.debug' );
It's always returning false and redirecting to playstore even though the app is installed on the phone. Package name is correct, rechecked multiple times. Checked on real device and emulator both. Working fine for iOS.
Facing the same issue, did you guys find any solution @lmta1 @TusharFA?
Having the same problem, could really need a solution..
@vd-37 @TusharFA @lmta1 got it to work on my device by adding some parameters inside my AndroidManifest.xml:
package="com.example.flutter_application">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> <--- added this
<application
.
.
.
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.HOME"/> <--- added this
<category android:name="android.intent.category.DEFAULT"/> <--- added this
</intent-filter>```
god bro!!
The support is now available in external_app_launcher: ^3.0.0
@vd-37 @TusharFA @lmta1 got it to work on my device by adding some parameters inside my AndroidManifest.xml:
package="com.example.flutter_application"> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> <--- added this <application . . . <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> <category android:name="android.intent.category.HOME"/> <--- added this <category android:name="android.intent.category.DEFAULT"/> <--- added this </intent-filter>```
this solved my problem thanks
Hi, I'm having trouble using your package. Following your documentation, I have used:
await LaunchApp.isAppInstalled(androidPackageName: 'xxxxxxx');
I have used different apps to see if they were saved and in all cases the result has been false.
I'm sure I spelled the package name right because with the LaunchApp.openApp method, it opens the correct page on google play to install the app I'm trying to open with the package.
I have also tried to find packages like com.chrome.android, also being installed as the one I try to open.