igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Type Alias AndroidNetworkSessionState

    The network session the app process's requests carry: the nid of x-fb-session-id, its three connection-history counters and the private id of x-fb-session-private.

    The nid is the one this process's stack is using — the one an earlier process left until the first network change, then the one the change minted. The counters and the private id follow the app's own events, the native session-id generator's onForeground, onBackground and onNetworkChange: foreground raises fc and mints a private id — the first one lands on the inherited nid; network change raises nc and mints both the nid and the private id; background raises bc and changes nothing else. So a process start is nid=<inherited>;nc=0;fc=0;bc=0; with no private id, the first foreground turns it into nid=<inherited>;nc=0;fc=1;bc=0; plus a private id, and the first network change into nid=<new>;nc=1;fc=1;bc=0; plus a new private id.

    A process always holds a session: the app's stack has one from its first request, so a device that remembers none (a snapshot restored without networkSessionId) is given one when the process is built, and the device keeps it. There is no "no session" form: its only job was to withhold the pair from a device the app itself never leaves without one.

    Process state, one per runtime layer, never in the session snapshot: only the current nid persists, in the device.

    type AndroidNetworkSessionState = {
        bc: number;
        fc: number;
        nc: number;
        nid: string;
        privateId?: string;
    }
    Index

    Properties

    Properties

    bc: number

    Background events this process counted (bc).

    fc: number

    Foreground events this process counted (fc).

    nc: number

    Network changes this process's stack counted (nc).

    nid: string
    privateId?: string

    Minted by the first foreground and re-minted by every later one and every network change.