Скачать презентацию
Идет загрузка презентации. Пожалуйста, подождите
Презентация была опубликована 9 лет назад пользователемМаксим Самокрутов
1 msdevcon.ru#msdevcon
2 0? $ 1 % 00 > 1 %$ 1 %0 1 %111 !# 1% ? %0 ?# >% %## #1> ! # $$ > ###%0%01 !1 #10# % 1 #1 % #1 >1 %>1 !0 0# > >1%! 0> ?$1001 >> ?00 %0 1# 1! >>1! 0 > 0 % # 1$ 1 > !$ % $ #0% >0$ > 110> # ?> # >>01 >$$! 110 1# # ! 0 1 #> % 100 !10 00%? >1 $10>0 > 0 0$ ??10 ## ?1 ?? 10>!# %01 # % $ 1 1% >0#1? ## ?!0# 10 0#$ 1> 0 1$?1 %?1# %> 011 #0
3 1! 0? $ 1 % 00 > 1 %$ 1 %0 1 %111 !# 1% ? %0 ?# >% %## #1> ! # $$ > ###%0%01 !1 #10# % 1 #1 % #1 >1 %>1 !0 0# > >1%! 0> ?$1001 >> ?00 %0 1# 1! >>1! 0 > 0 % # 1$ 1 > !$ % $ #0% >0$ > 110> # ?> # >>01 >$$! 110 1# # ! 0 1 #> % 100 !10 00%? >1 $10>0 > 0 0$ ??10 ## ?1 ?? 10>!# %01 # % $ 1 1% >0#1? ## ?!0# 10 0#$ 1> 0 1$?1 %?1# %> 011 #0
4 Часть 1. Push - уведомления Все, что вы хотели знать о Push – уведомлениях, но боялись спросить
5 Служба уведомлений (Notification Service) Сервер Приложений (Mobile Backend) Клиентское устройство
6 APNs Azure Notification Hub Сервер приложений iOS Windows 8 WNSMPNSGSM Windows Phone GoogleAndroid
7 Доставка десятков тысяч уведомлений в день iOS Android Win8 WinPhone Готовые библиотеки, Native SDK, Xamarin 693 руб. / уведомлений в месяц
8 Конфигуриро вание Notification Hub-а Разработка клиентской части Отладка средствами Visual Studio и Azure Разработка сервиса по управлению рассылкой Сбор и анализ статистики
9 Azure
10 //регистрация в Apple Notification Service. UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes) ; … //Если регистрация в Apple Notification Service прошла успешно public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken) { … //регистрация в Azure Hub Hub.RegisterNativeAsync(deviceToken, tags, (errorCallback) => { … }); }
11 //регистрация в Mobile Phone Notification Service. var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationA sync(); //Подключение к Azure MobileServiceClient msdevconfClient = new MobileServiceClient( " SecurityKey"); //регистрация channel.Uri в Azure await App.msdevconfClient.GetPush().RegisterNativeAsync(channel.Uri);
14 Сервис отправки уведомлений по расписанию База данных для хранения рассылок и статистики Интерфейс по управлению рассылкой, отчеты Azure SDK
15 Ограничения iOS – 256 bytes; Android – 1024 bytes; Windows Phone – 3Kb;
16 var hub = NotificationHubClient.CreateClientFromConnectionString( [ConnectionString], [NotificationHub]); var alert = string.Format("{{\"aps\":{{\"alert\":\"{0}\"}}}}", text); await hub.SendAppleNativeNotificationAsync(alert);
17 var hub = NotificationHubClient.CreateClientFromConnectionString( [ConnectionString], [NotificationHub]); var alert = string.Format(" Уведомление {0} ", text); await hub.SendMpnsNativeNotificationAsync(alert);
20 База данных для хранения статистики Сводный отчет
21 База данных для хранения статистики
22 Количество зарегистрирова нных в Azure устройств Самый популярный день недели для рассылки уведомлений Средний процент запусков по отношению к количеству отправленных уведомлений Средний рост посещаемости в день рассылки
23 await hub.SendMpnsNativeNotificationAsync(alert, new List() {UniqueGuid});
24 Часть 2. Geofencing Отправка локальных уведомлений в зависимости от местонахождения пользователя.
25 GPS Bluetooth LE (iBeacon)
27 protected CLLocationManager _locMgr; public GeofencingLocationManager(CLCircularRegion clRegion) { _locMgr = new CLLocationManager(); //Определяем область geofencing _locMgr.StartMonitoring(clRegion); //Указываем события в момент входа в область geofencing _locMgr.RegionEntered += HandleRegionEntered; //Указываем события в момент выхода из области geofencing _locMgr.RegionLeft += HandleRegionLeft; }
29 protected CLLocationManager _locMgr; public GeofencingLocationManager(CLBeaconRegion beaconRegion) { _locMgr = new CLLocationManager(); // Указываем beacon _locMgr.StartMonitoring(beaconRegion); //Указываем события в момент входа в область beacon _locMgr.RegionEntered += HandleRegionEntered; //Указываем события в момент выхода из области beacon _locMgr.RegionLeft += HandleRegionLeft; } DEMO
30 Package.appxmanifest protected override async void OnNavigatedTo(NavigationEventArgs e) { foreach (DeviceInformation di in await DeviceInformation.FindAllAsync(BluetoothLEDevice.GetDeviceSelector())){ BluetoothLEDevice bluetoothLEDevice = await BluetoothLEDevice.FromIdAsync(di.Id); } Page.xaml.cs
33 Спасибо за внимание! Денис Кретов {НОТИССИМУС, Технический директор}
34 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Еще похожие презентации в нашем архиве:
© 2024 MyShared Inc.
All rights reserved.