Mobile Detection stopped working

For those who like to stay on the client
mbeausoleil
Posts: 4
Joined: Fri Aug 07, 2015 6:02 am

Mobile Detection stopped working

Postby mbeausoleil » Fri Aug 07, 2015 6:03 am

Hello,

We use WURFL.js on our site. It has been working for over a year. Today it has stopped and is redirecting all traffic to mobile. Any ideas?

Thanks,

Mathieu

mbeausoleil
Posts: 4
Joined: Fri Aug 07, 2015 6:02 am

Re: Mobile Detection stopped working

Postby mbeausoleil » Fri Aug 07, 2015 6:06 am

This is the simple code in the header:

Code: Select all

<script type='text/javascript' src="//wurfl.io/wurfl.js"></script>
	<script type="text/javascript">
        if (WURFL.is_mobile){
			if (WURFL.form_factor != 'Tablet'){
           		      window.location.replace('/mobile');
			}
        }

awebs
Posts: 1
Joined: Fri Aug 07, 2015 8:00 am

Re: Mobile Detection stopped working

Postby awebs » Fri Aug 07, 2015 8:02 am

We're experiencing the same issue.

I would also add that even on the WURFL.io homepage, for the example shown, I am seeing "Ad targeting mobile devices" even though I'm viewing on my desktop machine.

The object being returned is correct. For example, for my machine:
{"is_mobile":"false","complete_device_name":"Google Chrome","form_factor":"Desktop"}

But something appears to be wrong because if(WURFL.is_mobile) is coming back TRUE even though the object shows it as false.

mbeausoleil
Posts: 4
Joined: Fri Aug 07, 2015 6:02 am

Re: Mobile Detection stopped working

Postby mbeausoleil » Fri Aug 07, 2015 8:23 am

That is correct. In testing it returns proper variables however the processing engine isn't taking into account that it returns 'false'

Elliotfehr

Re: Mobile Detection stopped working

Postby Elliotfehr » Fri Aug 07, 2015 9:01 am

Hello,

We did experience an issue that caused the `is_mobile` capability to return "true" or "false" as opposed to a boolean value. This has since been corrected and you should no longer see this capability returning a string value. I apologize for the inconvenience.

Thank you,

Elliot

mbeausoleil
Posts: 4
Joined: Fri Aug 07, 2015 6:02 am

Re: Mobile Detection stopped working

Postby mbeausoleil » Fri Aug 07, 2015 9:28 am

Yes it seems to be working properly now.

Is this something that may occur again? I'm not sure how the boolean variable switched?

Elliotfehr

Re: Mobile Detection stopped working

Postby Elliotfehr » Fri Aug 07, 2015 10:00 am

Hello,

We have taken the necessary precautions to prevent this issue from occurring in the future.

Thank you,

Elliot


Who is online

Users browsing this forum: No registered users and 5 guests