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
Mobile Detection stopped working
-
- Posts: 4
- Joined: Fri Aug 07, 2015 6:02 am
Re: Mobile Detection stopped working
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');
}
}
Re: Mobile Detection stopped working
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.
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.
-
- Posts: 4
- Joined: Fri Aug 07, 2015 6:02 am
Re: Mobile Detection stopped working
That is correct. In testing it returns proper variables however the processing engine isn't taking into account that it returns 'false'
Re: Mobile Detection stopped working
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
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
-
- Posts: 4
- Joined: Fri Aug 07, 2015 6:02 am
Re: Mobile Detection stopped working
Yes it seems to be working properly now.
Is this something that may occur again? I'm not sure how the boolean variable switched?
Is this something that may occur again? I'm not sure how the boolean variable switched?
Re: Mobile Detection stopped working
Hello,
We have taken the necessary precautions to prevent this issue from occurring in the future.
Thank you,
Elliot
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 2 guests