Skip to content

华为荣耀手机获取OAID首次为空,要手动调用才能获取 #88

@godcop

Description

@godcop

即使提前用DeviceIdentifier.register(this)方法预处理后,依然需要手动再次调用DeviceIdentifier.getOAID(this)方法才能获取,而不是立即就能自动获取。除华为荣耀以外,其它手机没问题。

比如一个场景:当应用启动时使用DeviceIdentifier.getOAID(this)方法自动获取OAID,这样就获取不到。但当应用启动完毕后,再调用该同步方法就没问题。这里说的应用启动,是指完全杀掉该应用的进程后启动,因为如果不杀掉进程,这样偶尔是能获取的。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions