Hi
I face a different behavior on android device on browse widget. Please try my attach zip file, Which use the stack to run in ios simulator, it will show a web page (for local file) and click some link, which the file has in the local folder, it will show the web page, but in Android device, it will not show other link.
I don't know whether it is a bug in Android or not. Please help me to confirm it.
Regards
Terry Ho
browse widget different behavior in Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
browse widget different behavior in Android
- Attachments
-
- test.zip
- (10.17 KiB) Downloaded 203 times
-
- VIP Livecode Opensource Backer
- Posts: 7230
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: browse widget different behavior in Android
The iOS simulator reads files from the hard drive just as the Finder does. If you are using a hard coded or relative file path it will probably fail on a real iPhone too.
I didn't think browsers could access the local file system, but if they do, then on mobile you need to use specialFolderPath() instead of a specific URL. (I don't download files from here usually, it's easier if the post contains scripts I can read here. So I haven't examined the stack.)
I didn't think browsers could access the local file system, but if they do, then on mobile you need to use specialFolderPath() instead of a specific URL. (I don't download files from here usually, it's easier if the post contains scripts I can read here. So I haven't examined the stack.)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: browse widget different behavior in Android
Hi Jacque,
Yes, You are right. I'm oversight that It is different in real device and simulator.
Regards
Terry Ho
Yes, You are right. I'm oversight that It is different in real device and simulator.
Regards
Terry Ho
Re: browse widget different behavior in Android
Hi
After further test, I think it is the bug in android device. Which I put the the following code in the browser widget,
On browsernavigatebegin purl
Answer purl
End browsernavigatebegin
Then the answer message will display in ios device and will not display in Android device, when click on the link.
I will file this bug.
Regards
Terry Ho
After further test, I think it is the bug in android device. Which I put the the following code in the browser widget,
On browsernavigatebegin purl
Answer purl
End browsernavigatebegin
Then the answer message will display in ios device and will not display in Android device, when click on the link.
I will file this bug.
Regards
Terry Ho
-
- VIP Livecode Opensource Backer
- Posts: 7230
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: browse widget different behavior in Android
Does browserStartedLoading work?
EDIT: Never mind, I see you're using a widget. Try browserDocumentLoadBegin and see if that works.
EDIT: Never mind, I see you're using a widget. Try browserDocumentLoadBegin and see if that works.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: browse widget different behavior in Android
Hi Jacque,
Confirm it is a bug.
https://quality.livecode.com/show_bug.cgi?id=21358
Thanks your help. Which point me to the right direction.
Regards
Terry Ho
Confirm it is a bug.
https://quality.livecode.com/show_bug.cgi?id=21358
Thanks your help. Which point me to the right direction.
Regards
Terry Ho