Lewati ke konten

Halaman ini belum tersedia dalam bahasa Anda. Anda membaca teks bahasa Inggris.

Academy

What an app sees and a page does not

An application installed on a handset reads the system it sits in, and a page reads only the browser it is opened in. A phone profile answers everything a page can ask and nothing that only the system answers.

Pelajaran 11 dari 14

Two readers of one account

The same account can be read from two places. One is the platform's own application on a handset, the other is a page in a browser.

They do not see the same amount, and effort has nothing to do with it. The application may ask the system it was installed into, and the page may ask the browser.

What a page is allowed to ask

A page reads what the browser exposes to it: the browser signature, the client hints, the screen, the pixel ratio, the graphics string, the cores, the memory, the pointer.

All of that arrives as answers to questions. Every one of those answers is something a profile can be given before the first line of page script runs.

  • Signature and client hints

    The reduced Android form modern Chrome sends, with the handset model carried in the hints.

  • Screen and pixel ratio

    The values of one real handset, not a screen picked apart from the device.

  • Graphics string

    Vendor and renderer in the form Android reports them.

  • Touch and pointer

    The touch points a phone reports, a coarse pointer and no hover.

  • Connection numbers

    Latency and throughput in a phone's range instead of a laptop's.

What only the system answers

An installed application lives inside the system and can ask it things a page is never handed. A browser cannot reach that from the other side of the glass.

A phone profile has no answer to those questions and does not invent one. An invented answer is a signal of its own.

What is readA page in a browserAn app on a handset
Phone layout and phone client hintsYesYes
The handset identifier the system assignsNoYes
Sensors of the handsetNoYes
The list of installed applicationsNoYes
A code arriving by messageNoYes
Camera and microphone of the handsetNoYes

What a phone profile hands over

A phone profile is an ordinary profile whose fingerprint template is a phone. The handset arrives whole, so the screen, the pixel ratio, the graphics, the cores, the memory and the vendor fonts all belong to one model.

The window is then brought down to that screen, touch is switched on and the pointer becomes coarse. A new tab and a frame from another origin are dressed before their first line of script.

Not every profile can take the template. One created on an older generator does not know a phone, and the app declines instead of handing over another machine silently.

The window that cannot be wider

A desktop window will not go as narrow as a phone screen on its own, so it is brought down to the handset size over the debugging protocol. A window wider than the screen it claims is a device that exists nowhere.

That arrives about a second after launch, so a phone profile opens the start page first and the destination after it. If the window could not be brought down, the app names the profile and says so.

The fonts that stay missing

A handset carries fonts of its own, and this computer does not have them. A site that measures fonts by drawing them can see that.

The app states it under the template picker rather than in a manual. The profile is also shown a few fonts of this machine on purpose, because without them pages would come out blank.

The connection numbers

The connection values are read early by the sites that care about them. A phone whose network numbers match a laptop is an environment disagreeing with itself.

So a phone profile gets phone latency and phone throughput, rounded the way the browser itself rounds them. The kind of connection follows from those numbers rather than being picked apart from them.

An account with a phone history

An account that lives on a handset has a handset's history behind it. Opening it in a browser adds a device to that history, whatever the page is told.

A profile that answered as a Mac last week and as a Samsung today has changed machine under a live login. That reads louder than any single value on the page.

Where the line runs

If a check reads a value, a phone profile answers as a phone. If a check needs the handset itself to act, to take a picture, to feel a tilt, to receive a message, there is nothing underneath to act.

So the work gets planned around what a page can do, and the rest stays on a real device. A browser profile does not pretend to be an application.

What this lesson does not claim

  • It does not claim that a phone profile is a phone. There is no modem, no SIM card, no sensors and no application store under it.
  • It does not describe an ARMANOS application for handsets, because there is none. The phone direction is a fingerprint template inside the desktop app.
  • It does not carry a session over from a platform's application. A login made in a browser is a login from a browser, and the account sees it as exactly that.
  • The connection fields that exist only on Android reach a phone profile only on a build able to substitute their values. An older build does not get them.
  • It does not decide how a platform will treat a phone profile. Those rules belong to the platform and they change.

Where you can see this yourself

Each claim here sits in a file you can open or a stand you can run.

The phone template carries a whole handset, so screen, pixel ratio, graphics, cores, memory and fonts move together
packages/shared/src/index.js · apps/desktop/test/mobile-really-mobile.js
The window is brought to the handset size, with touch, coarse pointer and orientation
apps/desktop/src/lib/mobileEmulation.js · apps/desktop/src/lib/mobileWindow.js
The note about the missing phone fonts stands under the template picker, and the self-check says the same from the page
apps/desktop/src/i18n/messages.js · apps/desktop/src/lib/fpAudit.js
The Android only connection fields reach a phone profile and only a build able to substitute their values
apps/desktop/src/lib/forkEngine.js · apps/desktop/test/поля-связи-телефона.js

Questions

Can a phone profile run the platform's app?
No. Anything installed from an application store lives outside the browser, and a profile is a browser.
Will a code sent by message arrive in the profile?
No. A message goes to a handset and a number, and a browser profile has neither of those.
Is a phone profile better than a desktop one?
It is different rather than better. It earns its place where the site itself behaves differently for a phone.
Does the tablet template count as a phone?
No. Chrome on an Android tablet does not call itself mobile, and the tablet template answers the same way.
Can I see what the page was handed?
Yes. The profile's own self-check reads the values back out of the page, and a phone profile gets extra rows for touch, orientation and the window size.

See what a phone profile answers

The phone profiles page lists what the template fills in and what it leaves alone.