简体   繁体   English

如何从我的 Api 向 Xamarin forms 应用程序发送获取请求?

[英]How do I send a get request from my Api to a Xamarin forms app?

Currently I am working on a Schoolproject and I need to send a Notification to a self written Xamarin Forms App from my API.目前我正在做一个 Schoolproject,我需要从我的 API 向自写的 Xamarin Forms 应用程序发送通知。 It all runs on a local network and the App can already communicate with the Api, now i want my api to send a notification to my phone if a specific event turns true.这一切都在本地网络上运行,并且应用程序已经可以与 Api 通信,现在我希望我的 api 在特定事件变为真时向我的手机发送通知。 How do I do this?我该怎么做呢? (Oh and I am using Python flask for my API, if u need this Information) (哦,我正在为我的 API 使用 Python flask,如果您需要此信息)

  • Use Push notification for it.使用推送通知。 As soon as there is a need to call mobile app from web server send a push notification.一旦需要从 web 服务器调用移动应用程序,就会发送推送通知。 Handle the push notification on application side to make a call to web api as soon as it receives the push notification with specific payload.处理应用程序端的推送通知,以便在收到具有特定负载的推送通知后立即调用 web api。
  • Use Web Sockets if server events are too frequent.如果服务器事件过于频繁,请使用 Web Sockets。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从我的 FastAPI 应用程序向另一个站点 (API) 发送 HTTP 请求? - How can I send an HTTP request from my FastAPI app to another site (API)? 如何从我的烧瓶应用程序向另一个站点发送GET请求? - How can I send a GET request from my flask app to another site? 如何从 Python 请求我的快速 API? - How do I request my fast API from Python? 如何使用jQuery发送GET请求? - how do I send a GET request with Jquery? 如何从我自己的应用程序向另一个 API 发送发布请求 - How can I send a post request to another API from my own application 如何从 ReactJS Web 应用程序向 Django API 发送 POST 请求? - How to send POST request to Django API from ReactJS web app? 如何发送 API 请求以与 discord 机器人交互 - how do I send an API request to interact with a discord bot 我要使用哪个API KEY来自ios APP的HTTP GET请求 - Which API KEY do I use for HTTP GET request from ios APP 如何向 python 中的 Gmail-API 发送批处理请求? - How do I send a batch request to the Gmail-API in python? 如何从我的生产App Engine应用程序获取实时数据到我的本地开发应用程序? - How do I get live data from my production App Engine app to my local dev app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM