• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: checking device or platform
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: checking device or platform


  • Subject: Re: checking device or platform
  • From: Johann Werner <email@hidden>
  • Date: Wed, 22 May 2013 14:19:22 +0200

Am 22.05.2013 um 14:05 schrieb Raymond NANEON <email@hidden>:

> Hi Johann,
>
> Thanks for your advice but it doesn't resolve my issue.

Uhm, yeah, that happens when the phone rings while writing an email ;-)

So browser().isIPhone() returns false? You should check the values in ERXBrowserFactory.parsePlatform what your iPhone sends as user-agent string and why the browser object is initialized with a different platform. If there is a bug, patches for wonder are welcome :-)

jw


> Envoyé depuis iCloud
>
> Le 22 mai 2013 à 04:40, Johann Werner <email@hidden> a écrit :
>
>> Instead of mySession().browser() you should preferably use browser() that ERXComponent provides. That's a little bit shorter and works also for sessionless pages.
>>
>> jw
>>
>>
>> Am 22.05.2013 um 12:35 schrieb Raymond NANEON <email@hidden>:
>>
>> > Hi List,
>> >
>> > I want to check the device or platform on which my app running, to activate or not some options. Does it exist a component which does it well?
>> >
>> > I try WOConditional and test this example :
>> >
>> > in Html
>> >
>> > <webobject name = "platform">
>> > <webobject name = "nav">mobileOption</webobject>
>> > </webobject>
>> >
>> > in woD
>> >
>> > platform : WOConditional {
>> > condition = platform;
>> > }
>> >
>> > in Java :
>> >
>> > public boolean platform() {
>> > return mySession().browser().isIPad()
>> > || mySession().browser().isIPhone()
>> > || mySession().browser().isUnknownPlatform();
>> > }
>> >
>> > This example don't activate mobileOption when I run my app on my iPhone.
>> >
>> > Thanks for help
>> > Envoyé depuis iCloud
>>
>>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • [SOLVED]Rép : Re: checking device or platform
      • From: Raymond NANEON <email@hidden>
References: 
 >Rép : Re: checking device or platform (From: Raymond NANEON <email@hidden>)

  • Prev by Date: Rép : Re: checking device or platform
  • Next by Date: Re: EOKeyValueQualifier.evaluateWithObject on EOQualifier.QualifierContains selector?
  • Previous by thread: Rép : Re: checking device or platform
  • Next by thread: [SOLVED]Rép : Re: checking device or platform
  • Index(es):
    • Date
    • Thread