我想用 windows phone 开发一个应用程序,它像服务一样在后台工作。我需要一个紧急 SMS 发送器,它可以由接收器电话中的同一应用程序接收。因为它必须在收到消息时接收消息,所以它应该是一个服务而不是一个正在运行的应用程序,它是否适用于 windows phone?
问问题
77 次
2 回答
0
Not exactly like that. You can run a Scheduled background agent but it is very limited (also has an expiry date) and can not launch the application. To receive a message you can use notification but again the user has to click somewhere to open the app. You can not send sms automatically without the user pressing send.
I'd suggest re-thinking how you want to build this app. You'll certainly need a back-end service somewhere to which the agent from a phone might send a request to send sms.
于 2013-04-07T15:43:05.143 回答