Get the mobile device profiles/settings on the fly

Get the mobile device profiles/settings on the fly SearchSearch
Author Message
Chris
Unregistered guest
Posted on Monday, March 28, 2005 - 12:11 pm:   

Hi, i want to know how to get the profiles/settings of a mobile device on the fly to know (image size as example) to send an image to it fitted/scaled to that size.
Any help?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4228
Registered: 10-2002
Posted on Monday, March 28, 2005 - 06:09 pm:   

Hi Chris,

This area is for Now SMS/MMS Gateway Product support. And I have to give preference to support questions for our products.

However, I can give you some brief pointers.

Basically, if you are sending over SMS, you don't know. If you are sending MMS via an operator MMSC (or other aggregator), you don't know.

The only way to determine this information is to trigger a device to make a request to your content server from its browser. (i.e., sending content using WAP Push, via a WAP portal, or direct delivery MMS where it is not blocked by the operator)

When the browser connects to a content server, it identifies itself with two HTTP headers ... the "User-Agent:" header which is a text string header that identifies the browser ... and with most devices, also a "Profile:" header which points to the WAP User-Agent Profile URL that contains more information about device characteristics and capabilities.

-bn

Chris
Unregistered guest
Posted on Tuesday, March 29, 2005 - 12:23 pm:   

Sorry Bryce, I did not put my question correctly. What i want to know is related to the NowSMS Product.

I have built an application that merges images together to create a new image that should be immediately scaled and converted to the receiving mobile's format on the fly.

The reason i did not use the imaging features in Nowsms was that everytime we tested it, Nowsms tends to add its own black border to the image. So to avoid this i decided to build my own imaging features in my application.

Now i would like to have the Nowsms when sending the Wap Push to identify the device (User Agent & Profile) and pass it on to my imaging application so that it can then adjust the created image to the correct device parameters based on the info that Nowsms has obtained which is the User Agent & Profile.

How can Nowsms pass to my application the User Agent & Profile info?
Chris
Unregistered guest
Posted on Tuesday, March 29, 2005 - 12:26 pm:   

Sorry Bryce, I did not put my question correctly. What i want to know is related to the NowSMS Product.

I have built an application that merges images together to create a new image that should be immediately scaled and converted to the receiving mobile's format on the fly.

The reason i did not use the imaging features in Nowsms was that everytime we tested it, Nowsms tends to add its own black border to the image. So to avoid this i decided to build my own imaging features in my application.

Now i would like to have the Nowsms when sending the Wap Push to identify the device (User Agent & Profile) and pass it on to my imaging application so that it can then adjust the created image to the correct device parameters based on the info that Nowsms has obtained which is the User Agent & Profile.

How can Nowsms pass to my application the User Agent & Profile info?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4260
Registered: 10-2002
Posted on Wednesday, March 30, 2005 - 10:02 pm:   

Hi Chris,

We shouldn't be adding any black border. I suspect the phone is doing that.

Probably what is happening is that when the image is scaled down, we are preserving the current aspect ratio. So the image will be smaller than the screen size, either horizontally or vertically. The phone that you are looking at probably displays that as black.

Are you sending MMS or WAP Push?

If you're doing WAP Push, then you could send the WAP Push URL so that it pointed to URLs on your server. Your server would need to look for the "Profile:" header in the incoming request to determine the device's characteristics. ("Profile:" points to a URL for a UAProf file which contains info about the device characteristics. You can see some examples of real-world UAProfs a the following link http://www.w3development.de/rdf/uaprof_repository.)

If you have a particular image that you'd like us to take a closer look at, then let us know ... if there's a way we can make things better, we'd like to look into it.

-bn