如何从Cordova移动应用程序调用Azure移动服务的自定义功能? [英] How to call a custom function of Azure Mobile Service from Cordova mobile app?

查看:158
本文介绍了如何从Cordova移动应用程序调用Azure移动服务的自定义功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Azure移动服务(.Net)作为后端开发Cordova-Ionic应用程序。
我想调用一个用Service编写的函数。例如,当用户在移动应用程序中按下按钮时,电子邮件想要从服务发送。因此发送电子邮件的功能是在Service中编写的。如何从Cordova App调用该功能?
任何人都可以提供帮助

I am developing a Cordova-Ionic App with Azure Mobile Service(.Net) as backend. I want to call a function that is written in Service. e.g an email want to send from the service when user press a button in mobile app. So the function to send email is written in Service. How to call the function from the Cordova App? Can anybody help please

推荐答案

您应该在服务器上定义一个自定义API并使用<$ c $调用它c>客户端SDK中的invokeAPi :

You should define a custom API on the server and call it using invokeAPi in the client SDK:

在Cordova中调用自定义API

这篇关于如何从Cordova移动应用程序调用Azure移动服务的自定义功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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