Java Game

Java Game SearchSearch
Author Message
Steven Quek
Posted on Tuesday, August 05, 2003 - 07:25 am:   

Can i use the now.sms to push the game to the mobile handset ? How ?
Bryce Norwood - NowSMS Support
Posted on Tuesday, August 05, 2003 - 02:28 pm:   

The easiest way to do this is to use the "Send Multimedia WAP push" function, and specify the Java game (.jad or .jar file) as the content file.

Or you can create a static WML page that includes a link to the .jad or .jar file, and send a WAP push that references the URL for the WML page. (Sending a standard WAP push that references the java file directly won't work on many phones.)

-bn
Steven Quek
Posted on Wednesday, August 06, 2003 - 09:38 am:   

Can Advice how to do that. Sorry i am very new to your system as well as WML. Does all the phone support Send "Multimedia WAP Push" ? if yes, how to i do especially using URL submit to now-sms. I have interface that get user request via URL and will then push the game to the user. I will appreciate if u can advice and once able to perform the require task, we will purchase your product for our services.

Steven Quek
Posted on Wednesday, August 06, 2003 - 10:46 am:   

What do i need in order to send multimedia WAP Push. Does my modem need to support WAP.
Bryce Norwood - NowSMS Support
Posted on Wednesday, August 06, 2003 - 03:34 pm:   

Steven,

Your modem doesn't need to support WAP. You just need to have a path to send out a binary SMS (a GSM modem is fine), and you need a public IP address (or a route through your firewall) so that the PC running NowSMS is accessible through the internet.

On the "MMSC" page of the NowSMS configuration, you need to configure the "HTTP Port Number" to an available port (80, the standard HTTP port is best, if you can use it), and "Local Host Name or IP Address" must be set to a host name or IP address that mobiles can use to connect into your gateway via the internet. With those settings in place, "Activate" the MMSC service.

Now go to the NowSMS web interface. Verify that you can send a text SMS message through the system.

Next, verify that you can send a WAP push. Don't worry about what you are pushing at this point ... just send a WAP push with any text and any URL. Don't worry about what the URL is ... at this point you just want to verify that you can send the message and have it received as a WAP push on the recipient phone.

Next, use the "Send Multimedia WAP push" option in the menu, and attach your .jad or .jar file as an attachment (probably better to use the .jar file).

Assuming everything works with that, to do this programmatically (as opposed to manually through the web interface), you can send the multimedia WAP push by submitting an HTTP GET URL like this:

http://x.x.x.x:yyyy/?PhoneNumber=recipphonenumber&MMSFILE=http%3A//host.name/fil ename.jar&MMSWAPPush=Yes

Where http://host.name/filename.jar is a URL for retrieving the JAR file from your web server.

Note: This URL format that I'm giving you here is specific to our v5.0 release which is still in beta. Details and download at http://www.nowsms.com/beta5. I'm pointing you to the beta instead of the current v4.20 release, because the beta supports doing this via a simple HTTP GET request, whereas the v4.20 release requires an HTTP POST, which is more difficult to explain.

-bn
Steven Quek
Posted on Monday, August 11, 2003 - 10:52 am:   

I do not understand. What should i put for the MMSC local host. I got a WEB Server said 203.118.40.123 and the java game located there. I notice that the Nowsms will create a directory MMSCDATA when i try to send a multimedia WAP push, but the game did not copy over(The file is zero byte.) Appreciate u can give me more details. Sorry i am very new to your product
Bryce Norwood - NowSMS Support
Posted on Tuesday, August 12, 2003 - 07:44 am:   

Steven,

NowSMS has an integrated web server (it actually has two, but I don't want to confuse things too much).

When you send an MMS message, or a multimedia WAP push, the content of the MMS message (or WAP push) is published on the MMSC component of the NowSMS gateway. The MMSC is effectively a specialised web server.

The "local host name or IP address" setting specifies a host name or IP address that can be used externally to be able to connect into the MMSC component of the gateway. So when we send a URL that contains a WAP push or MMS to a mobile, the mobile can connect back into the URL to retrieve the content.

I'm trying to figure out the best way to get you started.

Let's start by verifying that the MMSC is active, and that it can be accessed from a mobile phone.

For starters, create a file named TEST.WML in the MMSCDATA directory, with the following content:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="Hello World">
<p align="center">
<big><b>Hello World!</b></big><br/>
</p>
</card>
</wml>

Make sure that the MMSC component of NowSMS is active ("Activate" on "MMSC" page of the configuration dialog). And then from a mobile phone, try to connect to the HTTP Port of the MMSC and request test.wml (e.g., http://host.name.or.ip.address:port/test.wml).

"host.name.or.ip.address" is whatever address or host name that you need to specify to connect to the server from the outside world. "port" is the HTTP port number defined on the "MMSC" page of the configuration dialog.

Note that whatever works for this "host.name.or.ip.address" is what you would specify for the "Local Host Name or IP Address" field that you were asking about.

If that works ... next via the NowSMS menu, try sending a simple WAP push, with some text, and the above as a URL. Then you can see what happens when a phone receives a WAP push.

Next, try "Send Multimedia WAP Push", and specify a JAR file to send (instead of an HTTP link).

Then, we'll move back to trying to get the URL format for sending the push referencing content on another server to work. I might need to see a debug log to see what is going wrong in the fetch of the URL content. Manually edit SMSGW.INI, and add Debug=Yes under the [SMSGW] section header. Then restart the service. Repeat the attempt to send via URL refernece, and then e-mail the SMSDEBUG.LOG file to nowsms@now.co.uk so that I can see the URL submitted, and how we tried to process it.

-bn
Steven Quek
Posted on Tuesday, August 12, 2003 - 08:55 am:   

I alway got unknow response from the mobile set.

I am using Nokia 6610 any problem. Anymean to simulate with WAP browser.
Steven Quek
Posted on Thursday, August 14, 2003 - 02:46 am:   

Thanks. I managed to connect to the MMSC. I have some problem hope u can help me.

1. How to download the game into the Game folder ?
2. Any variation for different phone
3. Can the SMS and MMSC in different machine.
4. How to i able to check if the game/MMS being downloaded.

We will purchase the product once we are able to resolve some of the technical issues.
Anonymous
Posted on Friday, August 29, 2003 - 10:48 am:   

1. If you read Nokia site, you will see that "Games downloaded from other sites than Nokia will be placed under applications"
Peter Lim
Posted on Sunday, August 31, 2003 - 01:23 am:   

Sorrie to interrupt. This discussion interests me. Is there a way to bundle my application (not Java games, but written in C) into a JAR file and do as what you said above to enable my application to be "PUSH" or OTA download to the device?
Anonymous
Posted on Monday, September 01, 2003 - 10:58 am:   

Now I am lost..

Nokia has JAVA ME installed.. How will you run C programs on it??

Antti
Bryce Norwood - NowSMS Support
Posted on Friday, September 05, 2003 - 06:21 pm:   

For C programs, which I assume are developed directly for Symbian or Series 60 ... instead of a JAR file, you would use a SIS file ... MIME type "application/vnd.symbian.install".

I'm not a Symbian expert, but I've seen others distributing Symbian/Series 60 apps in this way.

-bn
Anonymous
Posted on Friday, September 19, 2003 - 09:13 am:   

sorry. but may i noe hu actually is steven quek and peter lim??
Anonymous
Posted on Thursday, October 02, 2003 - 10:09 pm:   

how can i send .sis or nokia install file over the internet to my mobile
Bryce Norwood - NowSMS Support
Posted on Saturday, October 04, 2003 - 04:01 pm:   

Store the SIS file on a web server. Make sure the web server is configured to return the MIME type for the SIS file as "application/vnd.symbian.install".

Then navigate to the URL for that file on the web server with the browser on the phone, so that it can download the file.

To send the URL to a phone without manually navigating to it, you can send a WAP push. Usually it works best for the WAP push to point to a WML content file that includes a link to the SIS file, instead of pushing the URL for the SIS file directly.

-bn