如何在Xamarin表单中以十字图形式在后台运行App [英] How to Run App in Background in Xamarin forms Cross plotform

查看:113
本文介绍了如何在Xamarin表单中以十字图形式在后台运行App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了xamarin跨平台应用程序,并且在iOS和Android版本中都可以正常工作.

I have developed a xamarin cross platform application and it is working fine in both iOS and Android versions.

现在,我们需要添加一个新功能,例如即使应用程序已关闭,我们也需要在后台运行应用程序.我需要每5分钟向用户发送一封电子邮件.
我对xamarin非常陌生,请问有什么可以帮助我实现这一目标的.

Now we need to add a new feature like we need to run app in background even app is closed. I need to send emails to the users for every 5 minutes.
I am very much new to xamarin Can any help me out to achieve this please.

最好的问候,斯里尼瓦斯.

Best Regards, Srinivas.

推荐答案

后台服务(当应用程序处于后台模式但未关闭时)是您的解决方案,请看一下:

Background services (when app is in a background mode, not closed) is your solution, take a look:

iOS-在后台更新应用程序: https://developer.xamarin.com/guides/ios/application_fundamentals/backgrounding/ios_backgrounding_techniques/updating_an_application_in_the_background/#background_fetch

iOS - Updating an Application in the Background: https://developer.xamarin.com/guides/ios/application_fundamentals/backgrounding/ios_backgrounding_techniques/updating_an_application_in_the_background/#background_fetch

Android-创建Android服务: https://developer.xamarin.com/guides/android/application_fundamentals/services/

Android - Creating Android Services: https://developer.xamarin.com/guides/android/application_fundamentals/services/

这篇关于如何在Xamarin表单中以十字图形式在后台运行App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆