如何注册设备以接收推送通知

时间:2018-11-16 11:19:35

标签: xamarin.forms push-notification aws-pinpoint

我正在尝试将设备注册到精确位置,但是我收到消息:

        public string Register()
    {

        String identityId = Credentials.GetIdentityId();
        RegisterDeviceRequest registerDevice = RegisterDevice(identityId);

        AmazonCognitoSyncClient AmazonCognitoSyncClient = new AmazonCognitoSyncClient(AwsCredentials, RegionEndpoint.EUWest1);
        SynAmazonCognitoSyncClient(registerDevice, AmazonCognitoSyncClient);

        return null;
    }

    private static System.Threading.Tasks.Task<RegisterDeviceResponse> SynAmazonCognitoSyncClient(RegisterDeviceRequest registerDevice, AmazonCognitoSyncClient AmazonCognitoSyncClient)
    {
        return AmazonCognitoSyncClient.RegisterDeviceAsync(registerDevice);
    }

但是我在SynAmazonCognitoSyncClient上收到了超时

在精确的仪表板中,我没有注册任何设备。

某些人还有其他形式可以将设备注册到xamarin形式的aws中吗?

0 个答案:

没有答案