Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Push Notification exception in Xamain.iOS

$
0
0

I am developing Xamarin forms application, I have enabled the Push notification process for sending the updates for my app to the users. I have used the amazon SNS tool to integrate the sending of messages to the installed users of my application. I have followed procedure mentioned in below link,

https://docs.aws.amazon.com/mobile/sdkforxamarin/developerguide/sns-send-push-notifications-ios.html

When I checked the push notification functionality in my application, it worked fine in Android. But it did not work in iOS devices, when I debugged the source I found that the exception occurred in registering the Device ID in the application created for my application in amazon. Please find the issue I have got below.

Error: The type initializer for 'Amazon.CognitoIdentity.AmazonCognitoIdentityConfig' threw an exception, when creating application end point

Code Snippet:

var response = await SnsClient.CreatePlatformEndpointAsync(
    new CreatePlatformEndpointRequest {
      Token = deviceToken,
      PlatformApplicationArn = "YourPlatformArn" /* insert your platform application ARN here */
    });

Note: Got exception while debug in above line.

I have also updated my amazon related assemblies in my projects but still facing this issue. Please let me know if you require any details and let me know on how to resolve this.

Regards,
Cheran


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>