Closed abhishek-tiwariddn closed 3 years ago
Same problem for me.
Hello, i have found solution. @visiblesoft-org @abhishek-tiwariddn
My setup :
❯ ionic info
Ionic:
Ionic CLI : 5.4.16
Ionic Framework : @ionic/angular 5.6.8
@angular-devkit/build-angular : 12.0.3
@angular-devkit/schematics : 12.0.3
@angular/cli : 12.0.3
@ionic/angular-toolkit : 4.0.0
Capacitor:
Capacitor CLI : 3.0.0
@capacitor/core : 3.0.0
Plugin use queryIntentActivities function for lists avalaible apps :
private void discoverAvailableApps(){
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(GEO_URI));
availableApps = new HashMap<String, String>();
List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0);
for (ResolveInfo resolveInfo : resolveInfoList) {
String packageName = resolveInfo.activityInfo.packageName;
String appName = getAppName(packageName);
if(!supportedAppPackages.containsValue(packageName)) { // if it's not already an explicitly supported app
logger.debug("Found available app supporting geo protocol: " + appName + " (" + packageName + ")");
availableApps.put(appName, packageName);
}
}
// Check if explicitly supported apps are installed
for (Map.Entry<String, String> entry : supportedAppPackages.entrySet()) {
String _appName = entry.getKey();
String _packageName = entry.getValue();
if(isPackageInstalled(_packageName, packageManager)){
availableApps.put(supportedAppNames.get(_appName), _packageName);
logger.debug(_appName+" is available");
}else{
logger.debug(_appName + " is not available");
}
}
}
Google has changed the visibility of packages in android 11 Package visibility filtering on Android.
Simply add <queries>
in your AndroidManifest.xml like this :
<manifest.....>
...
<queries>
<intent>
<action android:name="android.intent.action.VIEW"/>
</intent>
</queries>
</manifest>
Problem was solved ! :)
Hello, i have found solution. @visiblesoft-org @abhishek-tiwariddn
My setup :
❯ ionic info Ionic: Ionic CLI : 5.4.16 Ionic Framework : @ionic/angular 5.6.8 @angular-devkit/build-angular : 12.0.3 @angular-devkit/schematics : 12.0.3 @angular/cli : 12.0.3 @ionic/angular-toolkit : 4.0.0 Capacitor: Capacitor CLI : 3.0.0 @capacitor/core : 3.0.0
Plugin use queryIntentActivities function for lists avalaible apps :
private void discoverAvailableApps(){ Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(GEO_URI)); availableApps = new HashMap<String, String>(); List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); for (ResolveInfo resolveInfo : resolveInfoList) { String packageName = resolveInfo.activityInfo.packageName; String appName = getAppName(packageName); if(!supportedAppPackages.containsValue(packageName)) { // if it's not already an explicitly supported app logger.debug("Found available app supporting geo protocol: " + appName + " (" + packageName + ")"); availableApps.put(appName, packageName); } } // Check if explicitly supported apps are installed for (Map.Entry<String, String> entry : supportedAppPackages.entrySet()) { String _appName = entry.getKey(); String _packageName = entry.getValue(); if(isPackageInstalled(_packageName, packageManager)){ availableApps.put(supportedAppNames.get(_appName), _packageName); logger.debug(_appName+" is available"); }else{ logger.debug(_appName + " is not available"); } } }
Google has changed the visibility of packages in android 11 Package visibility filtering on Android.
Simply add
<queries>
in your AndroidManifest.xml like this :<manifest.....> ... <queries> <intent> <action android:name="android.intent.action.VIEW"/> </intent> </queries> </manifest>
Problem was solved ! :)
Thank you very much @modship !!!! I will try your solution. Regards
Hi,
I have removed this plugin and now I'm using Google map URL which is now recommend by Google. The plugin may still face issues with future release of android versions.
Link maps and create builds without any issues using Universal cross-platform syntax https://developers.google.com/maps/documentation/urls/get-started
On 20/07/21 12:33 am, David Padých wrote:
Can anyone advise me how to run a build under sdkTarget 30 for Android 11? I have already tried cordova-android 8.1.0, cordova-android 9.1.0, @.*** (10.0.0), but without success...
For example, if I create a build for sdk target 30, it works on Android 9, but it doesn't work on Android 11 (nothing appears in the console and the menu with gps navigation applications does not appear). How to do for sdk target 30 due to upload to store? I feel like it has something to do with that thread...
The plugin version is the latest 5.0.6 including Google API KEY and build works.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dpa99c/phonegap-launch-navigator/issues/266#issuecomment-882785780, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUJPQWYB72GNAANUPTGJVZTTYRZIZANCNFSM453IO3WQ.
-- Thanks & Regards,
Abhishek Tiwari
Evon Technologies Email: @.*** Website: http://www.evontech.com
On using ionic 5 with Launch navigator, Map lists are not working and I'm getting the logs are here as below
2021-06-02 18:19:47.673 10311-10540/com.movemanger D/LaunchNavigatorPlugin: Plugin action=availableApps
2021-06-02 18:19:47.674 492-1688/system_process I/AppsFilter: interaction: PackageSetting{90d363d com.movemanger/10156} -> PackageSetting{4d65d04 com.google.android.apps.maps/10116} BLOCKED 2021-06-02 18:19:47.681 10311-10540/com.movemanger D/LaunchNavigator: waze is not available 2021-06-02 18:19:47.689 492-1688/system_process I/system_server: oneway function results will be dropped but finished with status OK and parcel size 4 2021-06-02 18:19:47.689 492-1688/system_process I/chatty: uid=1000(system) Binder:492_11 identical 1 line 2021-06-02 18:19:47.689 492-1688/system_process I/system_server: oneway function results will be dropped but finished with status OK and parcel size 4 2021-06-02 18:19:47.691 10311-10382/com.movemanger D/OpenGLRenderer: endAllActiveAnimators on 0xe1b66f90 (RippleDrawable) with handle 0xb5b4f0b0 2021-06-02 18:19:47.703 10311-10540/com.movemanger D/LaunchNavigator: moovit is not available 2021-06-02 18:19:47.704 10311-10540/com.movemanger D/LaunchNavigator: lyft is not available 2021-06-02 18:19:47.704 10311-10540/com.movemanger D/LaunchNavigator: baidu is not available 2021-06-02 18:19:47.704 10311-10540/com.movemanger D/LaunchNavigator: uber is not available 2021-06-02 18:19:47.704 10311-10540/com.movemanger D/LaunchNavigator: cabify is not available 2021-06-02 18:19:47.704 10311-10540/com.movemanger D/LaunchNavigator: maps_me is not available 2021-06-02 18:19:47.705 10311-10540/com.movemanger D/LaunchNavigator: taxis_99 is not available 2021-06-02 18:19:47.705 10311-10540/com.movemanger D/LaunchNavigator: gaode is not available 2021-06-02 18:19:47.705 10311-10540/com.movemanger D/LaunchNavigator: citymapper is not available 2021-06-02 18:19:47.705 492-3705/system_process I/AppsFilter: interaction: PackageSetting{90d363d com.movemanger/10156} -> PackageSetting{4d65d04 com.google.android.apps.maps/10116} BLOCKED 2021-06-02 18:19:47.707 10311-10540/com.movemanger D/LaunchNavigator: google_maps is not available 2021-06-02 18:19:47.708 10311-10540/com.movemanger D/LaunchNavigator: yandex is not available 2021-06-02 18:19:47.708 10311-10540/com.movemanger D/LaunchNavigator: sygic is not available 2021-06-02 18:19:47.708 10311-10540/com.movemanger D/LaunchNavigator: here_maps is not available 2021-06-02 18:19:47.708 10311-10540/com.movemanger W/PluginManager: THREAD WARNING: exec() call to LaunchNavigator.availableApps blocked the main thread for 35ms. Plugin should use CordovaInterface.getThreadPool().
Now the same app is working fine on Andorid 10 all devices. Let me know any further update to this plugin has added?