{"id":16220372,"url":"https://github.com/kosso/applauncher-issue","last_synced_at":"2025-04-07T23:47:07.561Z","repository":{"id":189158724,"uuid":"680156347","full_name":"kosso/applauncher-issue","owner":"kosso","description":"Sample iOS and Android CapacitorJS app to demonstrate app-launcher plugin issue 1744 : https://github.com/ionic-team/capacitor-plugins/issues/1744","archived":false,"fork":false,"pushed_at":"2023-08-18T17:15:14.000Z","size":658,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T01:18:48.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kosso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-18T13:29:15.000Z","updated_at":"2023-08-18T13:57:11.000Z","dependencies_parsed_at":"2024-11-03T22:41:12.385Z","dependency_job_id":"fb59d1ba-49ad-4936-831c-cb1b75992c6f","html_url":"https://github.com/kosso/applauncher-issue","commit_stats":null,"previous_names":["kosso/applauncher-issue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosso%2Fapplauncher-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosso%2Fapplauncher-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosso%2Fapplauncher-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosso%2Fapplauncher-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kosso","download_url":"https://codeload.github.com/kosso/applauncher-issue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749968,"owners_count":20989713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T11:58:32.696Z","updated_at":"2025-04-07T23:47:07.541Z","avatar_url":"https://github.com/kosso.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Sample iOS \u0026 Android app to demonstrate an issue with the capacitor/app-launcer plugin on Android\n\n\nSee the issue here : [https://github.com/ionic-team/capacitor-plugins/issues/1744](https://github.com/ionic-team/capacitor-plugins/issues/1744)\n\n\n-----------------\n\n#### sample app id\n\n`com.kosso.applauncherissue`\n\n- To test this app, please ensure you have both the Twitter/X \u0026 Facebook apps installed on iOS and Android test devices. \n\nThis sample app will use the documented `AppLauncher.canOpenUrl()` method to test to see if the Twitter/X and Facebook apps are installed on iOS and Android.  The results are shown in the app window.\n\n\nTo do this, we test for the URLs : `twitter://timeline`  and `fb://feed`.\n\nThe test JS code resides in `./js/test-app.js`\n\n\n#### Results (with both Twitter and Facebook apps installed on the devices)\n---------------------\n#### Result iOS\n\u003cimg width=\"300\" src=\"./RESULT-ios.png\"\u003e\n\n---------------------\n\n#### Result Android\n\u003cimg width=\"300\" src=\"./RESULT-android.png\"\u003e\n\n---------------------\n\n## Bug Report \n\n### Plugin(s)\n\n`app-launcher`\n\n\n### Capacitor Version\n\n```\nLatest Dependencies:\n\n  @capacitor/cli: 5.2.3\n  @capacitor/core: 5.2.3\n  @capacitor/android: 5.2.3\n  @capacitor/ios: 5.2.3\n\nInstalled Dependencies:\n\n  @capacitor/cli: 5.2.2\n  @capacitor/android: 5.2.2\n  @capacitor/core: 5.2.2\n  @capacitor/ios: 5.2.2\n\n[success] iOS looking great! 👌\n[success] Android looking great! 👌\n```\n\n### Platform(s)\n\nAndroid\n\n### Current Behavior\n\nI need to test if the Twitter/X and Facebook apps are installed. \n\nOn iOS, the code provided below works as expected and returns `true` if both apps are installed. \n(In order to make this work on iOS, I also needed to add the `LSApplicationQueriesSchemes` to Info.plist containing an array of strings including `twitter` and `fb`.)\n\nOn Android however, the code below returns `false` for both apps, despite them being installed. \n\nI have tried adding the required entries to AndroidManifest.xml to allow querying the packages: \n\n```\n\u003cqueries\u003e\n    \u003cpackage android:name=\"com.twitter.android\" /\u003e\n    \u003cpackage android:name=\"com.facebook.katana\" /\u003e\n    \u003cintent\u003e\n      \u003caction android:name=\"android.intent.action.VIEW\"/\u003e\n      \u003cdata android:scheme=\"twitter\"/\u003e\n    \u003c/intent\u003e\n    \u003cintent\u003e\n      \u003caction android:name=\"android.intent.action.VIEW\"/\u003e\n      \u003cdata android:scheme=\"fb\"/\u003e\n    \u003c/intent\u003e\n  \u003c/queries\u003e\n  \n```\n\nI have also tried adding this permission : \n\n```\n\u003cuses-permission android:name=\"android.permission.QUERY_ALL_PACKAGES\" tools:ignore=\"QueryAllPackagesPermission\" /\u003e\n```\n\n### Expected Behavior\n\nI expect the result to be `true` when the apps are installed on the device. \n\nWhat am I missing? \n\n\n### Code Reproduction\n\n```\nimport { AppLauncher } from '@capacitor/app-launcher';\n\nAppLauncher.canOpenUrl({ url: 'twitter://timeline' }).then(data =\u003e {\n        console.log('AppLauncher : Is Twitter/X installed? ', data.value);\n});\n\nAppLauncher.canOpenUrl({ url: 'fb://feed' }).then(data =\u003e {\n        console.log('AppLauncher : Is Facebook installed? ', data.value);\n});\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosso%2Fapplauncher-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkosso%2Fapplauncher-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosso%2Fapplauncher-issue/lists"}