profile
viewpoint
Artem Egorov iTOYS @Microsoft Russia, Yaroslavl

iTOYS/2048UWP 0

2048 UWP : Play the game "2048" at your Windows 10 devices

iTOYS/azure-mobile-apps-android-client 0

Android Client SDK for Azure Mobile Apps

iTOYS/azure-mobile-services 0

Mobile Services is deprecated - Use Mobile Apps instead

iTOYS/azure-notificationhubs-dotnet 0

.NET SDK for Azure Notification Hubs

iTOYS/DefinitelyTyped 0

The repository for high quality TypeScript type definitions.

iTOYS/git-point 0

GitHub in your pocket :iphone:

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 4284cf0f15c1bf5b5b2ccb99714b09bdead46d23

update appcenter-pre-build.sh

view details

push time in a day

PR opened Azure/azure-notificationhubs-ios

Reviewers
Way to appcenter
+322 -13

0 comment

12 changed files

pr created time in a day

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha c34f485892fd23d7cc9c01ff1a9906452b26e2be

add appcenter-pre-build.sh

view details

push time in a day

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 32f36a2b6685c1ddf2532638184a4d1c1b8eef02

struggle with embed framework

view details

push time in a day

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 2ef72c684e618514a2801ec72002a3263e14bec0

clean embed frameworks

view details

push time in a day

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha fcc6292241bcc23f537fcce26d01fee60e2ccfee

setup dev team

view details

push time in a day

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 3b1961b0259689944f1e3b0c6ba330ce83977d80

fix configs 2

view details

push time in a day

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha c63c50fd5c62dcb70d12b77c167da15b2d429bfd

fix configs

view details

push time in a day

create barnchAzure/azure-notificationhubs-ios

branch : way-to-appcenter

created branch time in a day

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha b6234c78fafcca5a657c4c1716e6e6ff80c012fa

fix jks path

view details

push time in a day

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 27bf1e8e0359a3a485eba3c7efc36b0f9760c7a5

move codesigning to gradle

view details

push time in a day

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 602cf3b8c51d48b538667e6f367569ef25d33ace

move codesigning to gradle

view details

push time in a day

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha fe4524ac1db12aefaa7367e2c42505de1dda6086

move codesigning to gradle

view details

push time in a day

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 1fc693fb341ac12cad2c0e5dec09cc9b6bc6681f

base64 decode

view details

push time in a day

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 1df292d7b553717281e7f16ebaeaf0eb82024a7e

Move appcenter-pre-build.sh

view details

push time in a day

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 9330a748a5f871dfb991d11b2c99e9387a82dbfc

Move appcenter-pre-build.sh

view details

push time in a day

create barnchAzure/azure-notificationhubs-android

branch : way-to-appcenter

created branch time in a day

created tagAzure/azure-notificationhubs-dotnet

tag4.0.0-preview2

.NET SDK for Azure Notification Hubs

created time in 2 days

release Azure/azure-notificationhubs-dotnet

4.0.0-preview2

released time in 2 days

created tagAzure/azure-notificationhubs-dotnet

tag4.0.0-preview1

.NET SDK for Azure Notification Hubs

created time in 2 days

release Azure/azure-notificationhubs-dotnet

4.0.0-preview1

released time in 2 days

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 0212b7253a87f92edae6ce8a22be1f4155a51eab

Fail on javadoc warnings

view details

push time in 4 days

create barnchAzure/azure-notificationhubs-android

branch : fix-javadoc-warns

created branch time in 4 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 41518bed4f8d840822c4d6663f2b6373c116df33

refactoring xcconfig

view details

push time in 9 days

Pull request review commentAzure/azure-notificationhubs-ios

Reimplement Sample Apps iOS

-//-//  AppDelegate.swift-//  SampleNHAppSwift-//-//  Created by Matthew Podwysocki on 6/30/20.-//  Copyright © 2020 Matthew Podwysocki. All rights reserved.-//+//----------------------------------------------------------------+//  Copyright (c) Microsoft Corporation. All rights reserved.+//----------------------------------------------------------------  import UIKit+import WindowsAzureMessaging  @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { -+    var connectionString: String?+    var hubName: String?      func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {-        // Override point for customization after application launch.+        +        if let path = Bundle.main.path(forResource: "DevSettings", ofType: "plist") {

Added log and exit(-1)

iTOYS

comment created time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 2159c2c6bdb5e3facd56531b8d2d1f4030b42f5c

typo

view details

push time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha f99039019a119d792e76be11d1d543fc543776a3

check for creds

view details

push time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 5cdf2c2301b716b6695877d7c518b3a7d94cecb4

refactoring xcconfig

view details

push time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 8df45e2a66de8096d307e41526cc78178481101f

refactoring xcconfig

view details

push time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha d66fdcfbcaa4e79ad3bbae7a301152a62a273faa

Add xcconfig

view details

push time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 94310ed812a18d3590e061e2ed633b2f51fcbb70

add extended tags

view details

push time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 4c2b70d7ac2cfda5fef6014813bd2138fa3cf990

Revert "Implement Sample App for ObjC macOS" This reverts commit 1d5b6865a6f58325b56c2ea60edbcb227d0b8a84.

view details

push time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 358fe2051fec0c82ec9a71b3c9dda6e65697ac81

Implement Sample App for Swift macOS

view details

push time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 1d5b6865a6f58325b56c2ea60edbcb227d0b8a84

Implement Sample App for ObjC macOS

view details

push time in 9 days

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 0cf19497816319710b5e5f0fa1da9ee574e7d665

Reimplement Sample App for Swift iOS

view details

push time in 9 days

create barnchAzure/azure-notificationhubs-ios

branch : update_samples_v3

created branch time in 9 days

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha c8abc85dfd349bc4e3c9b635913694f276810451

use new version everywhere

view details

push time in 17 days

PullRequestEvent

PR closed Azure/azure-notificationhubs-android

Reviewers
New api version

It's in a draft state until we will update our backend

+43 -3

0 comment

3 changed files

iTOYS

pr closed time in a month

delete branch iTOYS/XamarinComponents

delete branch : azuremessaging-android-preview2

delete time in a month

create barnchiTOYS/XamarinComponents

branch : azuremessaging-android-preview2

created branch time in a month

PR opened Azure/azure-notificationhubs-android

Reviewers
New api version

It's in a draft state until we will update our backend

+6169 -68

0 comment

101 changed files

pr created time in a month

create barnchAzure/azure-notificationhubs-android

branch : new-api-version

created branch time in a month

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 49709e153e863236adc7547845c44344766a027e

Update samples

view details

push time in 2 months

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 5e709749c4e1fa2825f2df6b2803d31b8d371a2e

fix samples

view details

push time in 2 months

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 1fc7baf53b6fa4cedcf7f389467cd035cff37088

Update samples

view details

push time in 2 months

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 2048acaccc89236cf9e072e6fc3ecd7da24ac041

testing release pipeline

view details

push time in 2 months

create barnchAzure/azure-notificationhubs-android

branch : test-release-pipeline

created branch time in 2 months

delete branch Azure/azure-notificationhubs-android

delete branch : nhinstallation-adapter-should-include-templates-in-body

delete time in 2 months

delete branch iTOYS/XamarinComponents

delete branch : notificationhubs-android-sdk-v3

delete time in 2 months

pull request commentxamarin/XamarinComponents

Update Xamarin bindings for Android SDK

@mattleibow @Redth

Could you please take a look on PR!

And do you know how can I fix build error:

"/Users/runner/runners/2.168.2/work/1/s/XPlat/AzureMessaging/iOS/samples/NotificationHubsSampleiOS.sln" (Build target) (1:2) -> "/Users/runner/runners/2.168.2/work/1/s/XPlat/AzureMessaging/iOS/samples/NotificationHubsSample/NotificationHubsSample.csproj" (default target) (3:6) -> (_DetectSigningIdentity target) -> /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(696,3): error : Could not find any available provisioning profiles for AzureMessagingSampleiOS on iOS. [/Users/runner/runners/2.168.2/work/1/s/XPlat/AzureMessaging/iOS/samples/NotificationHubsSample/NotificationHubsSample.csproj]

It seems not related to my changes.

Thanks!

iTOYS

comment created time in 2 months

push eventiTOYS/XamarinComponents

Jonathan Dick

commit sha d29049fb746eb3ff3a8dd929212ea1b58129fc8b

Update build.cake

view details

Jonathan Dick

commit sha 9371e709cecb50421c42eaa3efb99eba0a63dac0

Update build.cake

view details

Artem Egorov

commit sha f7f42aed9b8858aae8ef75f6c74934444e1afdca

Merge branch 'master' into notificationhubs-android-sdk-v3

view details

push time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Cleanup the MSNotificationHubMessage interface.

 - (void)notificationHub:(MSNotificationHub *)notificationHub didReceivePushNotif     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{         [alertController dismissViewControllerAnimated:YES completion: nil];     });-    completionHandler((notification.data != nil && [notification.data count] > 0) ? UIBackgroundFetchResultNewData : UIBackgroundFetchResultNoData);+    completionHandler(UIBackgroundFetchResultNoData);

Need to fix swift sample as well

brannon

comment created time in 2 months

Pull request review commentAzure/azure-notificationhubs-android

NotificationHubInstallationAdapter should include templates in body

 public void removeHeader(String name) {         mHeaders.remove(name);     } +    /**+     * Serialize InstallationTemplate to JSONObject.+     *+     * @param name Name of template+     * @param installationTemplate The templates that should no longer be in the collection.+     * @return serialized templateObject.+     */+    public static JSONObject serialize(String name, InstallationTemplate installationTemplate) {+        JSONObject templateObject = new JSONObject();+        try {+            templateObject.put("name", name);+            templateObject.put("body", installationTemplate.getBody());+            JSONObject headers = new JSONObject();+            Iterable<Map.Entry<String, String>> headersIterators = installationTemplate.getHeaders();+            for(Map.Entry<String, String> header: headersIterators){+                headers.put(header.getKey(), header.getValue());+            }+            templateObject.put("headers", headers);+            JSONArray tagsArray = new JSONArray();+            for (String tag : installationTemplate.getTags()) {+                tagsArray.put(tag);+            }+            templateObject.put("tags", tagsArray);+        } catch (JSONException ex) {+            // Investigating the possible sources of JSONException, it seems the only time it is+            // thrown is when a Number is invalid. Because we are exclusively serializing strings+            // above, this exception _should_ never be thrown.+            throw new RuntimeException("Invalid template, unable to serialize", ex);+        }+        return templateObject;+    }++    /**+     * Deserialize JSONObject to InstallationTemplate.+     *+     * @param installationTemplate Template to deserialize+     * @return Deserialized template.+     * @throws JSONException When there's a schema-mismatch of the object to populate, and what+     * appears in the serialized form of the template.+     */+    public static InstallationTemplate deserialize(JSONObject installationTemplate) throws JSONException {

fixed

olegErmakov

comment created time in 2 months

Pull request review commentAzure/azure-notificationhubs-android

NotificationHubInstallationAdapter should include templates in body

 public void removeHeader(String name) {         mHeaders.remove(name);     } +    /**+     * Serialize InstallationTemplate to JSONObject.+     *+     * @param name Name of template+     * @param installationTemplate The templates that should no longer be in the collection.+     * @return serialized templateObject.+     */+    public static JSONObject serialize(String name, InstallationTemplate installationTemplate) {

fixed

olegErmakov

comment created time in 2 months

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 5c50cc44ac010235197b387f9890d1079d34ef17

Add Android SDK pipeline yaml

view details

Artem Egorov

commit sha 73150f1b7c69c8e17e58cf75e63a37f65e1c5a43

downgrade android version for master

view details

Artem Egorov

commit sha b046b674bdfccb79aa0a4d0a8ab4494cc957e529

delete comment

view details

Artem Egorov

commit sha c9ce2787fcc75ecbd3350a775392158d87786df8

makeJar

view details

Artem Egorov

commit sha c847bef370c7698139801178a30f2520dacf526f

Merge pull request #74 from Azure/android-pipeline-yaml Add Android SDK pipeline yaml

view details

Artem Egorov

commit sha 25b1b54b4776515613047e6814a3ccc6dec06f59

Update Android yaml for push-refresh

view details

Martin Strobel

commit sha ce2a9807149eb2da4385974ebac4386cf07a04d7

Merge pull request #75 from Azure/update-android-yaml Update android yaml

view details

Artem Egorov

commit sha f69041f52a0235dba5004ef531fbd02c530476ad

Merge branch 'push-refresh' into nhinstallation-adapter-should-include-templates-in-body

view details

Artem Egorov

commit sha 6b760a0c16b182720b2ca72541a8c69680606dc9

make serializer package private

view details

push time in 2 months

delete branch Azure/azure-notificationhubs-android

delete branch : update-android-yaml

delete time in 2 months

delete branch Azure/azure-notificationhubs-android

delete branch : android-pipeline-yaml

delete time in 2 months

create barnchAzure/azure-notificationhubs-android

branch : update-android-yaml

created branch time in 2 months

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 5c50cc44ac010235197b387f9890d1079d34ef17

Add Android SDK pipeline yaml

view details

Artem Egorov

commit sha 73150f1b7c69c8e17e58cf75e63a37f65e1c5a43

downgrade android version for master

view details

Artem Egorov

commit sha b046b674bdfccb79aa0a4d0a8ab4494cc957e529

delete comment

view details

Artem Egorov

commit sha c9ce2787fcc75ecbd3350a775392158d87786df8

makeJar

view details

Artem Egorov

commit sha c847bef370c7698139801178a30f2520dacf526f

Merge pull request #74 from Azure/android-pipeline-yaml Add Android SDK pipeline yaml

view details

push time in 2 months

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha c9ce2787fcc75ecbd3350a775392158d87786df8

makeJar

view details

push time in 2 months

Pull request review commentAzure/azure-notificationhubs-android

Add Android SDK pipeline yaml

+trigger:+- master+- push-refresh+- v1-preview++pr:+- master+- push-refresh+- v1-preview++pool:+  name: Hosted Mac Internal+  demands: java++#Your build pipeline references an undefined variable named ‘getprop sys.boot_completed | tr -d '\r'’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

removed this

iTOYS

comment created time in 2 months

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha b046b674bdfccb79aa0a4d0a8ab4494cc957e529

delete comment

view details

push time in 2 months

push eventAzure/azure-notificationhubs-android

Artem Egorov

commit sha 73150f1b7c69c8e17e58cf75e63a37f65e1c5a43

downgrade android version for master

view details

push time in 2 months

create barnchAzure/azure-notificationhubs-android

branch : android-pipeline-yaml

created branch time in 2 months

pull request commentAzure/azure-notificationhubs-android

Check-In CI/PR Validation Pipeline Definition

We should initially merge it into master

olegErmakov

comment created time in 2 months

Pull request review commentxamarin/XamarinComponents

Update Xamarin bindings for Android SDK

-using System;--using Android.App;-using Android.Content;-using Android.Runtime;-using Android.Views;+using Android.App; using Android.Widget; using Android.OS;-using Android.Gms.Gcm;-using Android.Gms.Iid;-using WindowsAzure.Messaging;-using Android.Gms.Iid;--[assembly: Permission (Name = "@PACKAGE_NAME@.permission.C2D_MESSAGE")] //, ProtectionLevel = Android.Content.PM.Protection.Signature)]-[assembly: UsesPermission (Name = "@PACKAGE_NAME@.permission.C2D_MESSAGE")]-[assembly: UsesPermission (Name = "com.google.android.c2dm.permission.RECEIVE")]--//GET_ACCOUNTS is only needed for android versions 4.0.3 and below-[assembly: UsesPermission (Android.Manifest.Permission.GetAccounts)]-[assembly: UsesPermission (Android.Manifest.Permission.Internet)]-[assembly: UsesPermission (Android.Manifest.Permission.WakeLock)]-[assembly: UsesPermission (Android.Manifest.Permission.ReceiveBootCompleted)]+using WindowsAzure.Messaging.NotificationHubs;+using Android.Content;  namespace AzureMessagingSampleAndroid {-    [Activity (Label = "Notification Hubs Sample", MainLauncher = true)]++    [Activity(Label = "Notification Hubs Sample", MainLauncher = true)]     public class MainActivity : Activity     {         TextView textViewMsg; -        protected override void OnCreate (Bundle bundle)+        protected override void OnCreate(Bundle bundle)         {-            base.OnCreate (bundle);+            base.OnCreate(bundle);              // Set our view from the "main" layout resource-            SetContentView (Resource.Layout.Main);+            SetContentView(Resource.Layout.Main);+            textViewMsg = FindViewById<TextView>(Resource.Id.textViewMsg); -            textViewMsg = FindViewById<TextView> (Resource.Id.textViewMsg);+            // TODO: Customize these values to your own+            const string CONNECTION_STRING = "YOUR-HUB-CONNECTION-STRING";+            const string HUB_NAME = "YOUR-HUB-NAME"; -            #region Check to ensure user has used their own GCM Service, Hub Name, and Hub Secret-            if (MyRegistrationService.GCM_SENDER_ID == "YOUR-SENDER-ID") {-                Log ("You must change the SampleGcmBroadcastReceiver.SENDER_IDS to your own Sender ID for the sample to work!");+            #region Check to ensure user has used their own Connection String and Hub Name+            if (CONNECTION_STRING == "YOUR-HUB-CONNECTION-STRING")+            {

it's c# :)

iTOYS

comment created time in 2 months

delete branch Azure/azure-notificationhubs-ios

delete branch : fix-msinstallation

delete time in 2 months

pull request commentAzure/azure-notificationhubs-ios

fix MSInstallation and app delegate

Merged in #62

iTOYS

comment created time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Azure Notification Hubs iOS SDK V3 Preview 1

+/*

Tested! No conflicts

mpodwysocki

comment created time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Azure Notification Hubs iOS SDK V3 Preview 1

+// Copyright (c) Microsoft Corporation. All rights reserved.

I've tested both frameworks connected at the same time and all works without conflicts

mpodwysocki

comment created time in 2 months

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 9e327c31572173e6f7870906550414a80dc1f513

fix tests

view details

push time in 2 months

create barnchAzure/azure-notificationhubs-ios

branch : fix-msinstallation

created branch time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Azure Notification Hubs iOS SDK V3 Preview 1

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++#import "MSInstallation.h"++@implementation MSInstallation++- (void)encodeWithCoder:(nonnull NSCoder *)coder {+    [coder encodeObject:self.installationID forKey:@"installationID"];+    [coder encodeObject:self.pushChannel forKey:@"pushChannel"];+    [coder encodeObject:self.platform forKey:@"platform"];+    [coder encodeObject:self.tags forKey:@"tags"];+}++- (instancetype)initWithCoder:(NSCoder *)coder {+    if (self = [super init]) {+        self.installationID = [coder decodeObjectForKey:@"installationID"] ?: [[NSUUID UUID] UUIDString];+        self.pushChannel = [coder decodeObjectForKey:@"pushChannel"];+        self.platform = [coder decodeObjectForKey:@"platform"] ?: @"APNS";+        self.tags = [coder decodeObjectForKey:@"tags"];+    }+    +    return self;+}++- (instancetype) init {+    if(self = [super init]) {+        self.installationID = [[NSUUID UUID] UUIDString];+        self.platform = @"APNS";+    }+    +    return self;+}++- (instancetype) initWithDeviceToken:(NSString *) deviceToken {+    if (self = [self init]) {+        self.pushChannel = deviceToken;+    }+    +    return self;+}+++ (MSInstallation *) createFromDeviceToken:(NSString *) deviceToken {+    return [[MSInstallation alloc] initWithDeviceToken:deviceToken];+}+++ (MSInstallation *) createFromJsonString:(NSString *)jsonString {+    MSInstallation *installation = [MSInstallation new];+    NSData * data = [jsonString dataUsingEncoding:NSUTF8StringEncoding];+    +    NSError *error = nil;+    NSDictionary *dictionary = [NSJSONSerialization+                                 JSONObjectWithData:data+                                 options:0+                                 error:&error];+    +    installation.installationID = dictionary[@"installationId"];+    installation.platform = dictionary[@"platform"];+    installation.pushChannel = dictionary[@"pushChannel"];+    installation.tags = dictionary[@"tags"];+    +    return installation;+}++- (NSData *) toJsonData {+    +    NSDictionary * dictionary = @{+       @"installationId" : self.installationID,+       @"platform" : self.platform,+       @"pushChannel" : self.pushChannel,+       @"tags" : self.tags ?: @""+    };+    +    return [NSJSONSerialization dataWithJSONObject:dictionary+    options:NSJSONWritingPrettyPrinted error:nil];+}++- (BOOL) addTags:(NSArray<NSString *> *)tags {+    NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"^[a-zA-Z0-9_@#\\.:\\-]{1,120}$"

done

mpodwysocki

comment created time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Azure Notification Hubs iOS SDK V3 Preview 1

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++#import <UIKit/UIKit.h>+#import <UserNotifications/UserNotifications.h>++#import "MSInstallation.h"+#import "MSInstallationManager.h"+#import "MSInstallationTemplate.h"+#import "MSNotificationHub.h"+#import "MSNotificationHubMessage.h"++// Singleton+static MSNotificationHub *sharedInstance = nil;+static dispatch_once_t onceToken;++@implementation MSNotificationHub++@synthesize templates, debounceInstallationManager;++- (instancetype)init {+  if ((self = [super init])) {+      templates = [NSMutableDictionary new];+      debounceInstallationManager = [[MSDebounceInstallationManager alloc] initWithInterval:2];+      [self registerForRemoteNotifications];+  }++  return self;+}+++ (instancetype)sharedInstance {+  dispatch_once(&onceToken, ^{+    if (sharedInstance == nil) {+      sharedInstance = [self new];+    }+  });+  return sharedInstance;+}+++ (void)initWithConnectionString:(NSString *)connectionString withHubName:(NSString *)notificationHubName {+  [MSInstallationManager initWithConnectionString:connectionString withHubName:notificationHubName];+}++- (void)registerForRemoteNotifications {+    if (@available(iOS 10.0, *)) {+        UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];+        UNAuthorizationOptions authOptions =+            (UNAuthorizationOptions)(UNAuthorizationOptionAlert | UNAuthorizationOptionSound | UNAuthorizationOptionBadge);+        [center requestAuthorizationWithOptions:authOptions+                              completionHandler:^(BOOL granted, NSError *_Nullable error) {+                                if (granted) {+                                  NSLog(@"Push notifications authorization was granted.");+                                } else {+                                  NSLog(@"Push notifications authorization was denied.");+                                }+                                if (error) {+                                  NSLog(@"Push notifications authorization request has "+                                        @"been finished with error: %@",+                                        error.localizedDescription);+                                }+                              }];+    } else {+        UIUserNotificationType allNotificationTypes =+            (UIUserNotificationType)(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);+        UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:allNotificationTypes categories:nil];+        [[UIApplication sharedApplication] registerUserNotificationSettings:settings];+    }+    [[UIApplication sharedApplication] registerForRemoteNotifications];+}++- (BOOL)didReceiveRemoteNotification:(NSDictionary *)userInfo {

done

mpodwysocki

comment created time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Azure Notification Hubs iOS SDK V3 Preview 1

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++#ifndef MSInstallation_h+#define MSInstallation_h++#import <Foundation/Foundation.h>++@interface MSInstallation : NSObject <NSCoding>

we do not expose installation anymore, method getInstallation was removed

mpodwysocki

comment created time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Azure Notification Hubs iOS SDK V3 Preview 1

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++#ifndef MSInstallation_h+#define MSInstallation_h++#import <Foundation/Foundation.h>++@interface MSInstallation : NSObject <NSCoding>++@property(nonatomic, copy) NSString *installationID, *pushChannel, *platform;

It's always apns, removed

mpodwysocki

comment created time in 2 months

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 16d02114d90ba503e734810ae89a9835461599f5

Fix sample apps (#60) Fix sample apps

view details

push time in 2 months

delete branch Azure/azure-notificationhubs-ios

delete branch : fix-sample-apps

delete time in 2 months

push eventAzure/azure-notificationhubs-ios

Artem Egorov

commit sha 5a486b35ccd10ba361ec3e083ab4a7c60f0f61f4

fix comments

view details

push time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Azure Notification Hubs iOS SDK V3 Preview 1

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++#import <UIKit/UIKit.h>+#import <UserNotifications/UserNotifications.h>++#import "MSInstallation.h"+#import "MSInstallationManager.h"+#import "MSInstallationTemplate.h"+#import "MSNotificationHub.h"+#import "MSNotificationHubMessage.h"++// Singleton+static MSNotificationHub *sharedInstance = nil;+static dispatch_once_t onceToken;++@implementation MSNotificationHub++@synthesize templates, debounceInstallationManager;++- (instancetype)init {+  if ((self = [super init])) {+      templates = [NSMutableDictionary new];+      debounceInstallationManager = [[MSDebounceInstallationManager alloc] initWithInterval:2];+      [self registerForRemoteNotifications];+  }++  return self;+}+++ (instancetype)sharedInstance {+  dispatch_once(&onceToken, ^{+    if (sharedInstance == nil) {+      sharedInstance = [self new];+    }+  });+  return sharedInstance;+}+++ (void)initWithConnectionString:(NSString *)connectionString withHubName:(NSString *)notificationHubName {+  [MSInstallationManager initWithConnectionString:connectionString withHubName:notificationHubName];+}++- (void)registerForRemoteNotifications {+    if (@available(iOS 10.0, *)) {+        UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];+        UNAuthorizationOptions authOptions =+            (UNAuthorizationOptions)(UNAuthorizationOptionAlert | UNAuthorizationOptionSound | UNAuthorizationOptionBadge);+        [center requestAuthorizationWithOptions:authOptions+                              completionHandler:^(BOOL granted, NSError *_Nullable error) {+                                if (granted) {+                                  NSLog(@"Push notifications authorization was granted.");+                                } else {+                                  NSLog(@"Push notifications authorization was denied.");+                                }+                                if (error) {+                                  NSLog(@"Push notifications authorization request has "+                                        @"been finished with error: %@",+                                        error.localizedDescription);+                                }+                              }];+    } else {+        UIUserNotificationType allNotificationTypes =+            (UIUserNotificationType)(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);+        UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:allNotificationTypes categories:nil];+        [[UIApplication sharedApplication] registerUserNotificationSettings:settings];+    }+    [[UIApplication sharedApplication] registerForRemoteNotifications];+}++- (BOOL)didReceiveRemoteNotification:(NSDictionary *)userInfo {

No, we call this method from application(_:didReceiveRemoteNotification:fetchCompletionHandler:) method and we have to set correct UIBackgroundFetchResult type for fetchCompletionHandler:

mpodwysocki

comment created time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Azure Notification Hubs iOS SDK V3 Preview 1

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++#import <UIKit/UIKit.h>+#import <UserNotifications/UserNotifications.h>++#import "MSInstallation.h"+#import "MSInstallationManager.h"+#import "MSInstallationTemplate.h"+#import "MSNotificationHub.h"+#import "MSNotificationHubMessage.h"++// Singleton+static MSNotificationHub *sharedInstance = nil;+static dispatch_once_t onceToken;++@implementation MSNotificationHub++@synthesize templates, debounceInstallationManager;++- (instancetype)init {+  if ((self = [super init])) {+      templates = [NSMutableDictionary new];+      debounceInstallationManager = [[MSDebounceInstallationManager alloc] initWithInterval:2];+      [self registerForRemoteNotifications];+  }++  return self;+}+++ (instancetype)sharedInstance {+  dispatch_once(&onceToken, ^{+    if (sharedInstance == nil) {+      sharedInstance = [self new];+    }+  });+  return sharedInstance;+}+++ (void)initWithConnectionString:(NSString *)connectionString withHubName:(NSString *)notificationHubName {+  [MSInstallationManager initWithConnectionString:connectionString withHubName:notificationHubName];+}++- (void)registerForRemoteNotifications {+    if (@available(iOS 10.0, *)) {+        UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];+        UNAuthorizationOptions authOptions =+            (UNAuthorizationOptions)(UNAuthorizationOptionAlert | UNAuthorizationOptionSound | UNAuthorizationOptionBadge);+        [center requestAuthorizationWithOptions:authOptions+                              completionHandler:^(BOOL granted, NSError *_Nullable error) {+                                if (granted) {+                                  NSLog(@"Push notifications authorization was granted.");+                                } else {+                                  NSLog(@"Push notifications authorization was denied.");+                                }+                                if (error) {+                                  NSLog(@"Push notifications authorization request has "+                                        @"been finished with error: %@",+                                        error.localizedDescription);+                                }+                              }];+    } else {+        UIUserNotificationType allNotificationTypes =+            (UIUserNotificationType)(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);+        UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:allNotificationTypes categories:nil];+        [[UIApplication sharedApplication] registerUserNotificationSettings:settings];+    }+    [[UIApplication sharedApplication] registerForRemoteNotifications];

You initiate APNs registration for your app by calling the registerForRemoteNotifications. Another words we request permissions by registerForRemoteNotifications call and reach completionHandler above only after that

mpodwysocki

comment created time in 2 months

PR opened Azure/azure-notificationhubs-ios

Fix sample apps
+13082 -2762

0 comment

266 changed files

pr created time in 2 months

create barnchAzure/azure-notificationhubs-ios

branch : fix-sample-apps

created branch time in 2 months

Pull request review commentAzure/azure-notificationhubs-ios

Azure Notification Hubs iOS SDK V3 Preview 1

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++#import <Foundation/Foundation.h>+#import "MSLocalStorage.h"++static NSString * const installationKey = @"installation";+static NSString * const lastInstallationKey = @"lastInstallation";++@implementation MSLocalStorage+++ (MSInstallation *)upsertInstallation:(MSInstallation *)installation {+    return [MSLocalStorage upsertInstallation:installation forKey:installationKey];+}+++ (MSInstallation *)upsertLastInstallation:(MSInstallation *)installation {+    return [MSLocalStorage upsertInstallation:installation forKey:lastInstallationKey];+}+++ (MSInstallation *) upsertInstallation:(MSInstallation *)installation forKey:(NSString *)key {+    NSData *encodedObject = [NSKeyedArchiver archivedDataWithRootObject:installation];+    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];+    [defaults setObject:encodedObject forKey:key];+    [defaults synchronize];+    +    return installation;+}+++ (MSInstallation *)loadInstallation {+    return [MSLocalStorage loadLastInstallationForKey:installationKey];+}+++ (MSInstallation *)loadLastInstallation {+    return [MSLocalStorage loadLastInstallationForKey:lastInstallationKey];+}+++ (MSInstallation *)loadLastInstallationForKey:(NSString *)key {+    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];+    NSData *encodedObject = [defaults objectForKey:key];

Yep, objectForKey: returns nil and following line in this case as well;

mpodwysocki

comment created time in 2 months

push eventiTOYS/XamarinComponents

Artem Egorov

commit sha 12f120d5c9287056eff6953aacede8ece5b1a6c5

update readme.md

view details

push time in 2 months

push eventiTOYS/XamarinComponents

moljac

commit sha ae78a07eb51480322f15d2e72cd415cf17e1af02

version bump

view details

moljac

commit sha f44504a41c6fd02a877e4934b4530bb1f409bf6d

version bump

view details

moljac

commit sha 0b6b48a33460c8bb319d74b62c81deea899fe5f1

version bump

view details

moljac

commit sha 5c14c1884f2bad986cd686841bf6bac8e4805d6c

2.1.0 done

view details

moljac

commit sha be8e8c2b4a88ed43788f50c1e24a8ce5e2d1d16a

Merge branch 'master' into master_based_temsorflow-lite-2.1.0

view details

moljac

commit sha 90e1df3f3bb99a13b479084b82e6cb4cbb48251a

2.0.0 version DONE

view details

moljac

commit sha eec05b659246ce901bdafd73892c58558c214118

Merge branch 'master' into master_based_temsorflow-lite-2.0.0

view details

moljac

commit sha 8156f3df87af4865f47651c7eddd46eacd503a7e

v.1.15.0 DONE

view details

moljac

commit sha 64101cb64a84ddfcc5b1005343378132c230b404

Merge branch 'master' into master_based_tensorflow_1.15

view details

Jonathan Dick

commit sha c626b1afd859fe2e0b6dc33174cf6f20d7679f80

Use newer binary from upstream

view details

Jonathan Dick

commit sha 25ac3777b7a21ecec7985de47688b393ea834e0d

Update binding helpers

view details

moljac

commit sha dde7a1cb60e13aba57c9702804d43606f4cab136

Merge branch 'master' into master_based_tensorflow_1.15

view details

moljac

commit sha 6f2b10314050e9136e320df1226d7d4564dc95eb

Merge pull request #836 from xamarin/master_based_tensorflow_1.15 TensorFlow-Lite 1.15

view details

moljac

commit sha 228d0273d4f9f7bee65f8817a50e98fe692f5e0b

Merge branch 'master' into master_based_temsorflow-lite-2.0.0

view details

moljac

commit sha 6dc72a71d9b45e487d2ae5aa78964440d0589b82

Merge pull request #837 from xamarin/master_based_temsorflow-lite-2.0.0 TensorFlow 2.0.0

view details

moljac

commit sha 1b0c6cd5de6fa165ce6a0bbd03d20177d1c9cb66

Merge branch 'master' into master_based_temsorflow-lite-2.1.0

view details

moljac

commit sha 8c1e8b0b2981acd67afb0882a46be831f6ebc061

Merge pull request #838 from xamarin/master_based_temsorflow-lite-2.1.0 tensorflow lite 2.1.0

view details

Artem Egorov

commit sha 2be7b3c523b81155a65cb40fd9ed0d5981a271b9

Merge branch 'master' into notificationhubs-android-sdk-v3

view details

push time in 2 months

push eventiTOYS/XamarinComponents

Artem Egorov

commit sha f57e0e4aa4aff9ed681c12c7cbb19cc2c19732cd

refresh sample app

view details

Artem Egorov

commit sha dd7601baabb05b973c26168a860fbd25d90636c9

Merge branch 'notificationhubs-android-sdk-v3' of https://github.com/iTOYS/XamarinComponents into notificationhubs-android-sdk-v3

view details

push time in 2 months

more