Android check app installed

Содержание
  1. Is your app installed? getInstalledRelatedApps() will tell you!
  2. What is the getInstalledRelatedApps() API? #
  3. Supported app types you can check #
  4. Check if your Android app is installed #
  5. Tell your Android app about your website #
  6. Tell your website about your Android app #
  7. Check if your app is installed #
  8. Check if your Windows (UWP) app is installed #
  9. Tell your Windows app about your website #
  10. Tell your website about your Windows app #
  11. Check if your app is installed #
  12. Check if your Progressive Web App is already installed (in scope) #
  13. Tell your PWA about itself #
  14. Check if your PWA is installed #
  15. Check if your Progressive Web App is installed (out of scope) #
  16. Tell your PWA about your website #
  17. Tell your website about your PWA #
  18. Check if your PWA is installed #
  19. Calling getInstalledRelatedApps() #
  20. Still have questions? #
  21. Feedback #
  22. Show support for the API #
  23. Helpful links #
  24. Thanks #
  25. How to Fix Android App Not Installed Error
  26. Android Issues & Fixes
  27. Why Android App Not Installed Error Occurs
  28. 1.В Insufficient Storage
  29. 2.В Corrupted/Contaminated App File
  30. 3.В Storage Location
  31. 4.В SD Card Not Mounted in the Device
  32. 5.В Corrupted Storage
  33. 6.В Application Permission
  34. FixВ App Not Installed on Samsung for System Problems
  35. How to Fix App Not InstalledВ on Android with Regular Ways
  36. Tip 1. Only Use Google Play Store
  37. Tip 2. Mount SD Card
  38. Tip 3. Choose App Location Wisely
  39. Tip 4. Format SD Card
  40. Tip 5. App Permissions
  41. Tip 6. Try toВ Clear Data
  42. Bonus Tip: How to Transfer Apps from Android to Android
  43. The Bottom Line
  44. More Related Articles

Is your app installed? getInstalledRelatedApps() will tell you!

The getInstalledRelatedApps() method allows your website to check whether
your iOS/Android/desktop app or PWA is installed on a user’s device.

What is the getInstalledRelatedApps() API? #

The getInstalledRelatedApps() makes it possible for your page to check if your mobile or desktop app, or in some cases, if your Progressive Web App (PWA) is already installed on a user’s device, and allows you to customize the user experience if it is.

For example, if your app is already installed:

  • Redirecting the user from a product marketing page directly into your app.
  • Centralizing some functionality like notifications in the other app to prevent duplicate notifications.
  • Not promoting the installation of your PWA if your other app is already installed.

To use the getInstalledRelatedApps() API, you need to tell your app about your site, then tell your site about your app. Once you’ve defined the relationship between the two, you can check if the app is installed.

Supported app types you can check #

App type Checkable from
Android app Android only
Chrome 80 or later
Windows (UWP) app Windows only
Chrome 85 or later
Edge 85 or later
Progressive Web App
Installed in the same scope or a different scope.
Android only
Chrome 84 or later

The getInstalledRelatedApps() API only allows you to check if your apps are installed. You cannot get a list of all installed apps, or check if other 3rd party apps are installed.

Check if your Android app is installed #

Your website can check if your Android app is installed.

Android: Chrome 80 or later

Tell your Android app about your website #

First, you’ll need to update your Android app to define the relationship between your website and Android application using the Digital Asset Links system. This ensures that only your website can check if your Android app is installed.

In the AndroidManifest.xml of your Android app, add an asset_statements entry:

Then, in strings.xml , add the following asset statement, updating site with your domain. Be sure to include the escaping characters.

Once completed, publish your updated Android app to the Play store.

Tell your website about your Android app #

Next, tell your website about your Android app by adding a web app manifest to your page. The manifest must include the related_applications property, an array that provides the details about your app, including platform and id .

  • platform must be play
  • id is the GooglePlay application ID for your Android app

Check if your app is installed #

Finally, call navigator.getInstalledRelatedApps() to check if your Android app is installed.

Check if your Windows (UWP) app is installed #

Your website can check if your Windows app (built using UWP) is installed.

Windows: Chrome 85 or later, Edge 85 or later

Tell your Windows app about your website #

You’ll need to update your Windows app to define the relationship between your website and Windows application using URI Handlers. This ensures that only your website can check if your Windows app is installed.

Add the Windows.appUriHandler extension registration to your app’s manifest file Package.appxmanifest . For example, if your website’s address is example.com you would add the following entry in your app’s manifest:

Note, you may need to add the uap3 namespace to your

Then, create a JSON file (without the .json file extension) named windows-app-web-link and provide your app’s package family name. Place that file either on your server root, or in the /.well-known/ directory. You can find the package family name in the Packaging section in the app manifest designer.

See Enable apps for websites using app URI handlers for complete details on setting up URI handlers.

Tell your website about your Windows app #

Next, tell your website about your Windows app by adding a web app manifest to your page. The manifest must include related_applications property, an array that provides the details about your app, including platform and id .

  • platform must be windows
  • id is your app’s package family name, appended by the Id value in your Package.appxmanifest file.

Check if your app is installed #

Finally, call navigator.getInstalledRelatedApps() to check if your Windows app is installed.

Check if your Progressive Web App is already installed (in scope) #

Your PWA can check to see if it is already installed. In this case, the page making the request must be on the same domain, and within the scope of your PWA, as defined by the scope in the web app manifest.

Android: Chrome 84 or later

Tell your PWA about itself #

Tell your PWA about itself by adding a related_applications entry in your PWAs web app manifest.

  • platform must be webapp
  • url is the full path to the web app manifest of your PWA

Check if your PWA is installed #

Finally, call navigator.getInstalledRelatedApps() from within the scope of your PWA to check if it is installed. If getInstalledRelatedApps() is called outside the scope of your PWA, it will return false. See the next section for details.

Check if your Progressive Web App is installed (out of scope) #

Your website can check if your PWA is installed, even if the page is outside the scope of your PWA. For example, a landing page served from /landing/ can check if the PWA served from /pwa/ is installed, or if your landing page is served from www.example.com and your PWA is served from app.example.com .

Android: Chrome 84 or later

Tell your PWA about your website #

First, you’ll need to add digital asset links to the server where your PWA is served from. This will help define the relationship between your website and your PWA, and ensures that only your website can check if your PWA is installed.

Add an assetlinks.json file to the /.well-known/ directory of the domain where the PWA lives, for example app.example.com . In the site property, provide the full path to the web app manifest that will perform the check (not the web app manifest of your PWA).

Double check the file name when you create your assetlinks.json file, I’ve wasted many hours debugging, only to realize I’d added an extra ‘s’ in the file name.

Tell your website about your PWA #

Next, tell your website about your PWA app by adding a web app manifest to your page. The manifest must include the related_applications property, an array that provides the details about your PWA, including platform and url .

  • platform must be webapp
  • url is the full path to the web app manifest of your PWA

Check if your PWA is installed #

Finally, call navigator.getInstalledRelatedApps() to check if your PWA is installed.

Calling getInstalledRelatedApps() #

Calling navigator.getInstalledRelatedApps() returns a promise that resolves with an array of your apps that are installed on the user’s device.

To prevent sites from testing an overly broad set of their own apps, only the first three apps declared in the web app manifest will be taken into account.

Like most other powerful web APIs, the getInstalledRelatedApps() API is only available when served over HTTPS.

Still have questions? #

Still have questions? Check the getInstalledRelatedApps tag on StackOverflow to see if anyone else has had similar questions. If not, ask your question there, and be sure to tag it with the progressive-web-apps tag. Our team frequently monitors that tag and tries to answer your questions.

Feedback #

Did you find a bug with Chrome’s implementation? Or is the implementation different from the spec?

  • File a bug at https://new.crbug.com. Include as much detail as you can, provide simple instructions for reproducing the bug, and enter Mobile>WebAPKs in the Components box. Glitch works great for sharing quick and easy repros.

Show support for the API #

Are you planning to use the getInstalledRelatedApps() API? Your public support helps the Chrome team to prioritize features and shows other browser vendors how critical it is to support them.

  • Share how you plan to use the API on the WICG Discourse thread.
  • Send a tweet to @ChromiumDev using the hashtag #getInstalledRelatedApps and let us know where and how you’re using it.

Thanks #

Special thanks to Sunggook Chue at Microsoft for helping with the details for testing Windows apps, and Rayan Kanso for help with the Chrome details.

Источник

How to Fix Android App Not Installed Error

This post aims at telling you 6 tips to fix Android app not installed error. If you are stuck in Android app not installed error, those solutions are helpful.

Android Issues & Fixes

Android System Issues
Android Apps Issues
Samsung Phone Issues

I have a program working in the Android Emulator. Every now and again I have been creating a signed .apk and exporting it to my HTC Desire to test. It has all been fine. On my latest exported .apk I get the error message ‘App not installed’ when I try to install the .apk. What can I do with this issue?

Many Android users would like to install an app with a .apk file extension to their Android phone from somewhere, or even from Google Play,В and they may get the error message of “Application not installed”. Also,В the “ App not installed” error may pop up as the above user described. В Then, what to do w hen trying to install an APK it says app not installed?

Android App Not Installed for This User

Knowing the reasons why apps not installed on Android occur is the first step to solve this problem. Here in this post, we will introduceВ w hat causes apps not installed on Android and how to fix Android 11 app not installed error, or other Android OS versions.

Why Android App Not Installed Error Occurs

1.В Insufficient Storage

If  you are storing too much data on your Android phone, the downloaded app certainly can’t be installed on Android. However, as Android devices now are having more and more storage, insufficient storage is rarely a reason for Android app not installed error.

2.В Corrupted/Contaminated App File

Besides, the a pp not installed may mean that you downloaded corrupted files. If you download apps from somewhere else than Google Play Store, app files are usually can’t be installed on your device smoothly. It is OK to download apps from other platforms, you just need to check its extension name and make an effort not to install contained files.

3.В Storage Location

Apps work best when they are stored on Android device’s internal memory and some apps can only be stored in the device’s internal storage. If you don’t save the app in an appropriate location, it is for sure that Android app not installed error would occur.

4.В SD Card Not Mounted in the Device

Even though some apps can be downloaded and installed to SD card, you will see Android app not installed notification because the SD card is not mounted on the device.

5.В Corrupted Storage

Corrupted storage, especially corrupted SD cards, is one of the most common reasons why Android app not installed error occurs. Unwanted data might contain elements that disturb the storage location, causing Android app can’t install error.

6.В Application Permission

Software operations running in the background are set not to allow the installation of third-party software, it is also one reason why app not installed error on Android happens.

FixВ App Not Installed on Samsung for System Problems

When you get theВ error message that says app not installed,В it mainly caused by the above glitches on the Android system. Then you can use DroidKit – Android System Repair to solve the problem. You can fix various Android system issues with DroidKit. For example,В apps keep crashing,В touch screen not working,В Downloading…Do Not Turn Off Target, Samsung black screen, etc.В The ROM downloaded and installed on your device when fixing the problem is definitely official from Samsung. It’s 100% secure and stable.

Here’s how to fix system issues with DroidKit:

Step 1. Download and install DroidKit on your computer. Launch the software and click Fix System Issues.

* 100% Clean & Safe

Click Fix System Issues

Step 2. Connect your device and click Start button.

Click Start Button to Continue Fixing

Step 3. Click Download Now button to get the firmware package for your device.

Start to Download Firmware Package

Step 4. Once the firmware downloaded, tap one Fix Now.

Fix Now after Firmware Downloaded

Step 5.В Follow the on-screen instructionsВ to put your device into download mode.

Step 6. After that, DroidKit will start repairing Samsung system. Wait for a while, you will getВ System Fixed Successfully page. All your system problems will be fixed by this way.

System Fixed Successfully

How to Fix App Not InstalledВ on Android with Regular Ways

Before trying those solutions below, please delete unwanted apps or files so that your Android phone can have enough storage to install a new app. After that, reboot your device.

Tip 1. Only Use Google Play Store

Play Store is a platform designed specifically for Android software and it contains only trusted apps. If you only use Google Play Store to download apps, Android app not installed error can seldom occur.

Tip 2. Mount SD Card

Even though your SD card is properly inserted on your Android phone, it sometimes still can be inaccessible. Mounting SD card can make the SD card accessible. Here is how to mount SD card.

Step 1. Go to Settings > Storage.

Step 2. Click on Mount SD card on the Storage Info screen.

Restart your device and try to install the app now, it should work.

Android App Not Installed Fix – Mount SD Card

Tip 3. Choose App Location Wisely

It is suggested for users not to tamper with the app’s location and let the app decide where it needs to be placed. It is always best to place the apps in the phone’s internal storage.

Tip 4. Format SD Card

If the Android app not installed error occurs because SD card is corrupted, formatting the SD card is necessary. However, please do make a backup of the data on SD card so that you don’t have to suffer from any data loss.

Go to Settings > Storage > Format SD Card. Mount it with the steps in Tip 2.

Android App Not Installed Fix – Format SD Card

Tip 5. App Permissions

The Android app not installed error can be combated after resetting app permissions.

Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software canВ be installed on your device.

Reset App Permission

Tip 6. Try toВ Clear Data

If your phone and apps got wrong, generally you canВ also clear the cache and data of the Package installer. To do this:

Go to settings > Apps > Package Installer > Click Clear Cache and Data. After restarting your phone and then check if the problem is fixed.

If you got a message that “There was a problem parsing the package” while installing an app on Android, you can also find some solutions to this issue.

Bonus Tip: How to Transfer Apps from Android to Android

Switching to another phone is more than just getting a new phone. After making a purchase of a new phone, you have to transfer some important data like contacts, messages, photos from the old phone to the new phone and then download apps for the new Android phone.

It is no doubt that downloading apps on Android is troublesome and time-consuming. You have to search the app on the Google Play Store and then wait for the downloading and installation process. Thanks to the development of technology, an innovative tool – AnyDroid can help you transfer apps from Android to Android, saving you from those tedious processes. Here are more reasons why you should have AnyDroid to help you transfer apps from Android to Android.

  1. It can help you transfer apps from Android to Android directly within a few clicks. The whole process confuses nobody.
  2. It always transfers data at a blazing fast speed. According to statistics, AnyDriod can transfer almost 1.7 GB of data between Android phones within 1 minute.
  3. ItВ is 100% safe and secure. You have our guarantee that while using AnyDroid, it does no harm to your device and accidents like data loss or information leakage would never occur.

Manage & Transfer Android Data with AnyDroid

* 100% Clean & Safe

As you can see, AnyDroid is indeed a nice tool to transfer apps from Android to Android. Why not download it to your computer now and follow this guideВ to transfer apps from Android to Android?

The Bottom Line

That’s all for the topВ 7 tips to fix can’t install the app on Android. And DroidKit – Android System Repair can help you fix all Android OS problems. If you are bothered by software problems, download and try this tool with ease. If you find these tips helpful, please give this post a like or share it with others so that more people could benefit. Also, you can share your ideas in the comment column.

Member of iMobie team as well as an Apple fan, love to help more users solve various types of iOS & Android related issues.

Источник

Читайте также:  Html reader viewer для андроид
Оцените статью