【发布时间】:2015-09-02 08:33:30
【问题描述】:
我正在为 Xamarin android 和 iOS 使用 Kinvey db。
它适用于 Android。在 iOS 模拟器中它工作正常,但在设备中它不工作。它给了我错误
Unable to find a constructor to use for type KinveyXamarin.KinveyAuthResponse. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path 'username', line 1, position 12.
我正在尝试下面的代码
private Client myClient;
myClient = new Client.Builder ("kid_PeYFqjBcBJ","3fee066a01784e2ab32a255151ff761b").build ();
await myClient.User ().LoginAsync ();
【问题讨论】:
-
嘿,我是 Kinvey 的一名工程师,负责 Xamarin 库。我无法重现此问题,您使用的是哪个版本的 iOS?另外,您使用的是最新 (1.5.3) 版本的 xamarin 库吗?
-
感谢您的回复。我在 IOS 设备中有最新版本 1.5.3 kinvey 包使用和 8.4 OS 版本。它在模拟器中运行良好。