redhome
本人使用Objective-C SDK 12.1.3,发现在模拟器下sdk仍然试图注册iOS推送服务,这个问题导致了我托管在Leancloud的用户系统无法在模拟器下登录而只能在真机登录。请问如何在模拟器下运行时关闭推送服务的注册呢?报错信息如下: E6FB8A4A814EAD1EF1CA3D81DF3B1B24.png 822x236 115 KB 要补充一点的是,我在使用老版本sdk 11.6.7时并没有这个困扰,这是把sdk升级到12后才出现的。
你好,我明白这一点。但是iOS模拟器本身并没有device token,也不可能获取到有效的 device token 值。我想请教的是如何在模拟器环境中跳过 installation 类保存 device token 值的过程呢?
好的,感谢你的回复。
_lcUser = await LCUser.getCurrent(); if (_lcUser != null) { await _lcUser.fetch(); _avatar = avatar; _user = user; } 如上代码,先使用 LCUser.getCurrent() 获取本地缓存,之后调用 fetch() 方法,同步 cloud 上面的数据。 现在的问题是,本地获取的缓存数据没有问题。 但是使用 fetch() 获取的数据是之前的旧数据,导致数据无法同步。 我在控制台查看数据没有问题,也就是说 save() 成功同步到 cloud 但是 fetch() 过来的数据是旧数…
操他妈的缓存 使用 LeanCloud.clearAllCache(); 清楚缓存即可。 md
从 [Flutter] Upgrade Dio dependence to 0.3.10 继续讨论: redhome: I am using leancloud_storage latest version from pub.dev . It's quite a good plugin for supporting leancloud storage and works pretty well. But, as you know, there are many other plugins that depend on Dio and they require the least version…