本机 Blackberry 应用程序(非 MIDlet)可以使用 MIDP Push Register 吗?

发布于 2024-08-11 05:31:23 字数 320 浏览 3 评论 0原文

如果我正在编写一个 MIDlet,并且设备支持 SMS 推送注册(即支持 WMA 1.1 规范),我将能够将推送消息发送到安装在手机上并在指定端口监听 SMS 消息的应用程序。

但是,如果我正在编写 Blackberry 应用程序,我仍然可以继续使用适用于 MIDP 2.0 设备的过程吗?如果是这样,我可以在 JAD 文件中指定静态 SMS 推送注册吗,就像我们对 MIDlet 所做的那样? 适当的 JAD 属性是否仍指定为 MIDlet-Push-1:{}?

另一个并非完全无关的问题是——是否有任何批量短信提供商允许短信承载指定可以与此类解决方案集成的目标端口?

谢谢

If I am writing a MIDlet, and if the device supports SMS push registration (i.e. supports WMA 1.1 spec), I will be able to send push messages to the application that is installed on the phone and is listening to SMS messages at the assigned port.

However, if I am writing a Blackberry application, can I still go ahead and use the procedure that applies to MIDP 2.0 devices. If so, can I specify static SMS push registration in JAD file, as we do for a MIDlet?
Would the appropriate JAD property be still specified as MIDlet-Push-1:{}?

Another question, that is not totally unrelated is- are there any bulk SMS providers that allow SMS bearers specify the destination ports that can be integrated with this kind of a solution?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

三五鸿雁 2024-08-18 05:31:23

常规的黑莓应用程序不支持推送注册表。您必须保持 DatagramConnection 打开并以这种方式侦听传入的 SMS 消息。

DatagramConnection connection = (DatagramConnection)Connector.open("sms://:1234");
Datagram dgram = connection.newDatagram(connection.getMaximumLength());
connection.receive(dgram); // blocking call so this should be in a separate thread
String message = new String(dgram.getData());

其中 1234 是您正在侦听的端口。

至于你的第二个问题,我不完全确定,但我认为 mblox 支持端口定向短信。

A regular blackberry application does not support the push registry. You'll have to keep a DatagramConnection open and listen for the incoming SMS messages that way.

DatagramConnection connection = (DatagramConnection)Connector.open("sms://:1234");
Datagram dgram = connection.newDatagram(connection.getMaximumLength());
connection.receive(dgram); // blocking call so this should be in a separate thread
String message = new String(dgram.getData());

where 1234 is the port you're listening on.

As to you're second question I'm not entirely sure, but I think mblox supports port directed SMS.

豆芽 2024-08-18 05:31:23

对于第二个问题,如果批量短信服务提供商为您提供了包含 UDH 字段的 HTTP API,您可以将消息发送到侦听该特定端口的应用程序

For the second question, if the bulk SMS service provider provides you with HTTP API which included the UDH field, you can send messages to application listening in that particular port

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文