开源软件名称(OpenSource Name):Azure-Samples/app-service-mobile-dotnet-fieldengineer开源软件地址(OpenSource Url):https://github.com/Azure-Samples/app-service-mobile-dotnet-fieldengineer开源编程语言(OpenSource Language):C# 92.5%开源软件介绍(OpenSource Introduction):
Azure App Service field engineer sample with web admin portal and offline-sync-enabled Xamarin.Forms clientTry out a simple version of this demo and other Xamarin demos on "Try App Service". This sample is for a mobile client app for field engineers at a cable company to more easily manage their appointments throughout the day. The app will sync the engineer's jobs for that day onto their device when there is an internet connection. When there isn't an internet connection, the Mobile Apps offline sync feature keeps the records available and edittable; when the engineer connects back to the internet, the local changes are synced and any new Jobs are pulled to their device. This sample shows off some great features of Azure Mobile Apps and App Service, including:
OverviewThe first step of the sample is deploying the environment and code. Checkout the Deploying section below. Or, just click this button! Alternatively, you can deploy using the Azure Portal. Click here to deploy. Note: you can set the parameter useSQLCE to 1 or 0 to specify if you want to use SQLCE or a SQL Azure database. However, this template always creates a SQL Azure Database even if you set the SQLCE parameter to 1. Once you've refreshed the client to get all remote changes, you'll see all the jobs you have waiting to be fulfilled. At this point, you can disconnect your internet and make some changes. All your changes will be saved through a restart of the app. If you visit the admin page that comes with your site ({sitename}.azurewebsites.net/admin), you can see that none of the records have been updated. If you connect to the internet on your device again and refresh, your changes will sync to the server. You can see those changes reflected via the admin portal. DeployingJust click this button to deploy! Manual deployment - full version (with SQL Azure)The easiest way to deploy is to use the Continuous Integration feature of App Service.
Try App Service version (SQL CE)There is a project configuration that uses SQL CE as the server database and therefore does not require SQL Azure. To set up this version, after step #2 above, add an app setting with key Mobile client projectRequirements:
Steps:
IssuesIf you're having problems with the App, create an issue on GitHub. We welcome and encourage PRs from the community. Just checkout Azure's CLA first. LicenseSee LICENSE for full details. See also
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论