We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Tyhrstan B.1
11 years agoNew member | Level 1
Drop-in Chooser on Windows Phone 8.1
Hi,
On the previous dropbox forum I posted an issue regarding the Dropbox Chooser on Windows Phone.
I stated that when using desktop mode on IE (windows phone) the dropbox chooser works as expected, and only on Mobile mode it did'nt work.
I received the following answer on this topic:
Hi There,
I just tested and can't seem to get the chooser to work in windows phone 8, even with desktop mode enabled. (Though desktop mode does bypass our check). The trouble seems to be in how the windows phone handles popups. Whereas all other browsers correctly open a popup when asked to do so, windows phone seems to interpret our attempt to open a popup as a redirect. Since the user has been redirected away from the page they were on, we can't return the chosen file info to the page in the same context the user last saw that page. I believe the behavior is correct as is.
-Chris
The probable reason might be that I was using Windows Phone 8.1.
You were right about the fact that Windows Phone IE doesn't open a popup in a new window cause this disturbes the flow and every page runs in an isolated mode (so they can't interact). But the 'pop-up' can still interact with the 'parent' page.
I've created a similar construction where a pop-up is used to authenticate a user in linkedin and when the user returns to the 'returnurl' I call window.opener.{function} to invoke a function on the parent page.
And this works on Windows Phone 8.1
17 Replies
Replies have been turned off for this discussion
- Steve M.11 years ago
Dropbox Staff
Do you have a question? Or are you proposing a way to make the Chooser work on Windows Phone 8.1? (If so, please provide some code so we can see what you're talking about.)
- Tyhrstan B.111 years agoNew member | Level 1
Hi,
Well, my proposel is that the Dropbox Chooser already works on Windows Phone 8.1, except the
Dropbox.isBrowserSupported()function prevents it from working.In visual studio I can start a IE debug session on Windows Phone, if I Then replace the
Dropbox.isBrowserSupported()function by :function() { return true; }The dropbox file chooser works as expected.
So my proposel would be to finetune the isBrowserSupported function to enable Windows Phone 8.1,
useragents for IE11 on Windows Phone 8.1 can be found here https://msdn.microsoft.com/en-us/library/ie/hh869301(v=vs.85).aspx - Steve M.11 years ago
Dropbox Staff
Tyhrstan, we can't reproduce this behavior. I've created a simple page (http://wpchooser.site44.com/) that overrides
isBrowserSupportedas you did, and it doesn't seem to work on the Windows Phone 8.1 device I'm testing on.Would you mind trying that same page to see if it works for you? If so, could you provide details about the device you're testing with?
- Tyhrstan B.111 years agoNew member | Level 1
Hi Steve,
I've looked at the site.. and at first I couldn't reproduce it as well.
But it seems that the Alert() function isn't working. the screen freezes,
When debugging the page I stepped over the alert function and executed: $('#clickme').text('Worked: ' + files[0].link); This showed the selected file in de click button.
- Steve M.11 years ago
Dropbox Staff
What device are you using?
- Tyhrstan B.111 years agoNew member | Level 1
I'm using a Lumia 920, using Visual Studio I can start a debugging IE session on my phone.
- Steve M.11 years ago
Dropbox Staff
Would you mind browsing to http://www.whatsmyua.com/ and copying the user agent? I'm trying to figure out why this would work on your device and not ours.
- Tyhrstan B.111 years agoNew member | Level 1
Hi,
My useragent:
Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537 { "ua": "Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537", "browser": { "name": "IEMobile", "version": "11.0", "major": "11" }, "engine": { "name": "Trident", "version": "7.0" }, "os": { "name": "Windows Phone", "version": "8.1" }, "device": { "model": "Lumia 920", "vendor": "Nokia", "type": "mobile" }, "cpu": {} } - Tyhrstan B.111 years agoNew member | Level 1
My Lumia 920 runs:
Windows Phone 8.1 Update
version: 8.10.14234.375with the Lumia Denim update
- Steve M.11 years ago
Dropbox Staff
It's possible the Lumia Denim update is the important difference. The page fails in the tests I've done, so we can't enable it for all Windows Phone 8.1 users. I think that for now we'll leave things as-is.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!
Related Content
- 4 years agoanonymous