
回复
鸿蒙登录,code:1001502003,message:"parameter invalid, context is null"
游戏集成鸿蒙游戏服务,调用createLoginWithHuaweiIDRequest创建授权请求并将forceLogin设置为true。当手机系统设置中未登录华为账号时,隐式授权请求没有拉起华为账号登录界面,返回错误信息code:1001502003,message:"parameter invalid, context is null"。
咨询华为技术支持(提交工单:https://developer.huawei.com/consumer/cn/support/feedback)),技术回复,从message信息看,是context为空导致的。创建AuthenticationController对象时,需要传入context。
按照对方的指导,创建AuthenticationController时传入context,问题解决。
更多问题可关注:
鸿蒙游戏官方网站:https://developer.huawei.com/consumer/cn/games/
公开课:华为开发者学堂