从手机发送短信(不SMS)至手机 [英] Send message(Not SMS) from phone to phone

查看:214
本文介绍了从手机发送短信(不SMS)至手机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从手机发送信息给手机(有什么样的聊天,但有一个方向)未经用户需要做登记(我想用的电话号码,而不是像WhatsApp的),我找遍所有我发现了什么是谷歌云端讯息其中工程根据用户的注册不是基于他们的电话号码,任何人都知道我能做到这一点?

I need to send messages from phone to phone(Something like chat but with one direction) without requires from user to do registration(I want to use the phone number instead like Whatsapp), I searched everywhere all what I found is Google Cloud Messaging which works based on users registration not based on their phone numbers, anyone know how can I do this?

推荐答案

手机通信使用的电话,短信和数据通信(你也有蓝牙和NFC,但这些都是可能对你没有帮助)收音机。

Phones communicate using the radio for phone calls, SMS and data communication (you also have bluetooth and NFC, but those are probably not helpful for you).

要消息不使用短信与其它的手机,你只需要数据服务作为一种选择。 WhatsApp的和其他公司同时使用数据服务(Internet上的服务器)和网关像邮件从手机传送短信到手机上。换句话说,一个网关连接到手机网络的服务器,并可以短信转换成数据信息,反之亦然(收费)。

To message another phone NOT using SMS, you only have data services as an option. Whatsapp and other companies use both data services (servers on the internet) and "gateways" to transfer SMS like messages from phone to phone. In other words, a gateway is a server connected to the phone network and can convert SMS to data messages and vice versa (for a fee).

使用数据服务只(如谷歌云),如果你设置了服务和必要的通信设备标识符(即电话号码)是可能的。但随后的几个问题出现。首先,你的应用程序必须是要使用你的服务的任何电话。谷歌已经谷歌播放 - 这是对大多数设备,但是这就是为什么GCM不能在没有谷歌玩手机。接下来,你必须建立服务器来处理消息(上传和下载是pretty容易 - 但是什么时候手机都出网络或关你多久轮询排队什么,如果有人得到一个新的设备会发生什么??等等)亚马逊声称,AWS会做短信给任何谷歌的设备,但我一直没能得到它的工作(我认为他们有一个后端连接到GCM,但他们的支持并没有提供太多的方向。 )

Using data services only (like Google Cloud) is possible if you set up the services and device identifiers (i.e. phone numbers) necessary for communication. But then a few problems arise. First, your app has to be on any phone that wants to use your services. Google has "Google Play" - it's on most devices, but that's why GCM doesn't work on phones that don't have Google Play. Next, you have to build servers to handle the messaging (upload and download are pretty easy - but what about queuing when phones are out of network or off? how often do you poll? what happens if someone gets a new device? etc.) Amazon claims that AWS will do messaging to any Google device, but I haven't been able to get it to work (I think they have a back-end connection to GCM, but their support didn't provide much direction.)

WHATSAPP使用网关从数据移动消息给设备,其中其他用户没有WHATSAPP在电话 - 他们支付一定的费用,而另一个用户得到一个实际的SMS。 GCM是所有的数据服务,但几乎所有的设备都有自己的应用程序。

Whatsapp uses gateways to move messages from data to devices where the other user does not have Whatsapp on the phone - and they pay a fee and the other user gets a real SMS. GCM is all data services, but nearly all devices have their app.

如果你搜索,你会发现很多关于门户和服务提供商引用。您也可以查找GCM和建立客户会告诉你很多关于服务器将如何建造。但是,这并不容易,至少可以说。绝对不便宜。

If you search, you will find a lot of references for gateways and service providers. You can also look up GCM and building a client will tell you a lot about how a server would be built. But it's not easy to say the least. Definitely not cheap.

这篇关于从手机发送短信(不SMS)至手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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