Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

How to find value of AppToCheckiOS? #1

Closed
phuongtruongincepit opened this issue Mar 23, 2023 · 1 comment
Closed

How to find value of AppToCheckiOS? #1

phuongtruongincepit opened this issue Mar 23, 2023 · 1 comment

Comments

@phuongtruongincepit
Copy link

In file CheckInstalledApp.cs, in line 14:
public string AppToCheckiOS = "SixteenBitApp00";
I don't know where to find out "SixteenBitApp00". For example, If I want to check if another app such as Youtube, Twitter, ect. was installed, can you tell me how to find the value for that string AppToCheckiOS.

@the16bitgamer
Copy link
Owner

the16bitgamer commented Mar 23, 2023

I gave the code explanation in the Checking iOS Apps section. Please re-review that for details for implementation. However I will explain how the theory works.

Unlike in Android, iOS doesn't have the ability to "see" other applications by viewing the installed packages. However iOS does have the ability to launch other applications though web commands. Which is achieved through by an app with the "CFBundleURLSchemes" in the Info.plist.

My plugin is designed to read the receiving end of this, however your application need to know which applications you are searching for before hand. This is what the "LSApplicationQueriesSchemes" is for. For example if you want to search for YouTube you will need to find the url string that the YouTube application will respond to.

You can test this out in Safari.

As for which applications responds to which LSApplicationQueriesSchemes, I haven't the faintest clue. But I am certain you can search for it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants