Problem to show map in webviewer

36 views
Skip to first unread message

Ryan Cheung

unread,
Feb 12, 2016, 1:09:51 PM2/12/16
to MIT App Inventor Forum
I am making an APP to acts the device as a locator. I made a fusiontable to save the location info and try to get back the info and show the map in webviewer. The fusiontable was set to share for authorized user. I embbed the p12 key file to aia and it is success to update info to fusiontable.

I got the link below by the "publish" in fusionable.

https://www.google.com/fusiontables/embedviz?q=select+col2+from+1XMao28WHhdrdWHIfNnLvHs2rbzu4mqTUvfVgnrTD&viz=MAP&h=false&lat=22.334313817499716&lng=114.36383973693842&t=1&z=11&l=col2&y=2&tmplt=3&hml=GEOCODABLE 


This link success to show the location on my computer chrome. I normally tried to set the url as a link in AI2 view in webviewer. But fail. Only a white screen shown. But if I use activitystarter to view the link. It will get the link by my chrome browser and success to show. 

Why it can only shown by chrome ? I guess it is security matter in fusiontable. I want to show it in webviewer.

Ryan
 
Clipboard01.jpg
Clipboard02.jpg
blocks (12).jpg

Peep Prants

unread,
Feb 12, 2016, 2:38:00 PM2/12/16
to MIT App Inventor Forum
In my AI webview app works and show location ok. You can try,https://play.google.com/store/apps/details?id=est.kussu.viewer

Ryan Cheung

unread,
Feb 13, 2016, 6:02:45 AM2/13/16
to MIT App Inventor Forum
I found out the solution. It is a kind of bug I think. If I set the webviewer in other screen, it will show correctly. I found out that if you set a button . Click and change webviewer or canvas to visible , and show the content inside instantly. It will not work properly. I found there is two solution. If you insist to one screen (visible toggle method), you have to set a timer to reload the webviewer or canvas once again. I don't know why, But it work. The second method is load the webviewer or canvas in other screen. I am not prefer this method. AI is basically slow in response. It will let user feel much uncomfortable. 

Ryan  
Reply all
Reply to author
Forward
0 new messages