Xamarin & Azure - BFF, Really?

  • View
    692

  • Download
    3

  • Category

    Mobile

Preview:

Citation preview

Xamarin&AzureBFF,Really?

BenjaminTamTwitter:@benjamintam

Page

Why?› Myapps… apartfromactualphonefunctions› Productivity› GoogleMaps› Games› SocialMedia› Calculator!

/Copyright©2015byReadifyLimited2

Page

AzureAppServices› MobileServicesvsMobileApp› MobileAppvsAPIApp› ClientSDK› Storage(includingOfflineDataSync)› Authentication› PushNotifications

› .NETorNode.js back-end/Copyright©2015byReadifyLimited3

Page

Demo:Xamarin.Forms Solution

/Copyright©2015byReadifyLimited4

Page

Demo:RunningApp

/Copyright©2015byReadifyLimited5

Page

Demo:AppService

/Copyright©2015byReadifyLimited6

Page

Demo:MobileApp

/Copyright©2015byReadifyLimited7

Page

GettingStarted› Quickstart - EasyTables› Node.js backendonly› “Nocode”CRUDAPI› Codeisactuallyincorresponding.js &.json files

› UsesOData&SQLAzure› Debugging› LogStream/Copyright©2015byReadifyLimited8

Page

OfflineDataSync

/Copyright©2015byReadifyLimited9

Page

NetworkConnectivity› Isthereanetworkconnection?› Wifi› Cellular› 2G,3G,4G

› Roaming› Whatifthenetworkstatuschangesmid-operation?› Xam.Plugin.Connectivity

/Copyright©2015byReadifyLimited10

Page

DeviceStorage› Propertiesdictionary› Localfilestorage› SQLite.Net (*PCL)

/Copyright©2015byReadifyLimited11

Page

HowDoesOfflineDataSyncWork?› Cacheserverdatalocally› Create/modifydatalocally› Developerdecideswhen tosyncwithAzure› Push› Pull› Purge› Implicitpush

/Copyright©2015byReadifyLimited12

Page

EnablingOfflineDataSync› Microsoft.Azure.Mobile.Client.SQLiteStore NuGet› Configuration› IMobileServiceTable vsIMobileServiceSyncTable› Definethelocalstoreandtable(s)

› Operations› IMobileServiceSyncContext› IMobileServiceSyncHandler

/Copyright©2015byReadifyLimited13

Page

OtherConsiderations› Softdeletions› Conflictresolution› Whattokeep?› MobileServicePushFailedException

› Performance› FullvsIncrementalSync› CollapseLogic

/Copyright©2015byReadifyLimited14

Page

Demo:OfflineDataSync

/Copyright©2015byReadifyLimited15

Page

ThankYou!Twitter:@benjamintam

/Copyright©2015byReadifyLimited16

Recommended