From 32a2c2513b0afe024cc796db87cf74d690ce28d9 Mon Sep 17 00:00:00 2001 From: Mykyta Bondarenko <32954580+mykyta-bondarenko-gl@users.noreply.github.com> Date: Mon, 16 Apr 2018 12:02:21 +0300 Subject: [PATCH] fixed push register error message - added Entitlements.plist - clear Application.cs --- Notifications/Application.cs | 16 ++++------------ Notifications/Entitlements.plist | 8 ++++++++ Notifications/Notifications.csproj | 4 +++- 3 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 Notifications/Entitlements.plist diff --git a/Notifications/Application.cs b/Notifications/Application.cs index d5615bca..87ee84d2 100644 --- a/Notifications/Application.cs +++ b/Notifications/Application.cs @@ -1,20 +1,12 @@ -using System; using UIKit; namespace Example_Notifications { - public class Application// : UIApplication + public class Application { - public static void Main (string[] args) + public static void Main(string[] args) { - try - { - UIApplication.Main (args, null, "AppDelegate"); - } - catch (Exception e) - { - Console.WriteLine (e.ToString ()); - } + UIApplication.Main(args, null, "AppDelegate"); } } -} +} \ No newline at end of file diff --git a/Notifications/Entitlements.plist b/Notifications/Entitlements.plist new file mode 100644 index 00000000..903def2a --- /dev/null +++ b/Notifications/Entitlements.plist @@ -0,0 +1,8 @@ + + + + + aps-environment + development + + diff --git a/Notifications/Notifications.csproj b/Notifications/Notifications.csproj index b4af93f0..504c53d3 100644 --- a/Notifications/Notifications.csproj +++ b/Notifications/Notifications.csproj @@ -57,6 +57,7 @@ false ARMv7, ARM64 + Entitlements.plist none @@ -70,6 +71,7 @@ false ARMv7, ARM64 + Entitlements.plist @@ -94,7 +96,6 @@ - @@ -103,6 +104,7 @@ +