the list always works- the detail pages (2nd link) the list items point to do not always work.
the list always works- the detail pages (2nd link) the list items point to do not always work.
OK, can you post exact step show to reproduce this problem?
I am going to restate the problem a little. My general issue appears to still be related to the google maps bug I mentioned related to serving a map via https.
On appery test:
http://appery.io/app/view/3208501b-d6...
You can click on either button and get a list. Click on any list item. Data should load on page. Click on map button on bottom of the page list item points to. This displays map location. This all appears to work as it is now. If you click back in browser or back button on top navbar other list items should load ok.
However, if I export the project and put on my server and serve via https, map does not load given the same testing steps:
https://app.nickershop.com/shopPage.html
The only difference on the project on my server is that I had to work around the map bug related to the https issue by editing the mapPage.html code to replace these items:
code
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true">
/code
replaced by:
code
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true">
/code
and
code
<img class='map mapPage_mymap' src="http://assets1.geocommons.com/d51ab1366bec6a2c4954db979e5921bd4cc140db/images/no_preview_map.png?1311276822"/>
/code
replaced by:
code
<img class='map mapPage_mymap' src="https://assets1.geocommons.com/d51ab1366bec6a2c4954db979e5921bd4cc140db/images/no_preview_map.png?1311276822"/>
/code
This does not load map when you click on map button (chrome). It does load the map if you click browser refresh while on mapPage. This is where things got confusing. I started trying number of things like making the map button load the mapPage.html with Use full screen refresh =true. This made everything break. In other words, the mapPage would load ok but then the other list item pages would not run the service to get the data after I clicked back button then clicked on a list item again.
This issue of the map drawing appears to only effect chrome browsers. I tested on development computer with chrome which does not work when using https, but I noticed that safari on ios 6 and android browser on samsung phone works. I tested on nexus tablet with chrome and samsung phone with chome and neither of them worked.
I hope that helps clarify the issue. Right now I am getting no errors on development machine. I am not even getting google map specific errors as I was before. I am guessing you guys must have done something to at least make the errors go away. Right now the issue is that serving app via https does not load map page correctly with mapPage.html edits on chrome browsers.
Hello! As we can see you changed http://maps.google.com/ to https://maps.google.com/ in source code only on mapPage page. It's not correct. If you don't use full screen refresh then while navigating there will be loaded only div with new content and the whole document structure (in this case it's head part where JS with http://maps.google.com/ is added) won't be changed. That's why you need to replace http://maps.google.com/ with http://maps.google.com/ on all pages, not just on mapPage page. Basically that would be enough to do only on Start screen, but if someone starts to work with the site not from Start screen or refreshes the page you'll have this problem. So you should replace it on all the screens.
Ahh thank you! It has been difficult trying to figure out what what going on. When the bug is fixed, I will not need to do any hand editing after export right right?
Hi Sean,
Yes, you can do this in Appery.io.
Hi
Do you mean via App Settings like so:
https://maps.google.com/maps/api/js?s...
This generates the warning in Appery test:
Warning: you have included the Google Maps API multiple times on this page. This may cause unexpected errors.
Hi
so how do you do in Appery exactly? If you add to App Settings:
https://maps.google.com/maps/api/js?s...
You get both http and https links loading in pages which causes warning in appery test and also breaks map in https
Warning: you have included the Google Maps API multiple times on this page. This may cause unexpected errors.
If I try to edit source of mapPage.html only, the https version will not load on other pages as you mentioned.
Hi Sean,
If you add a script via "App Settings" it will be added to all the pages.
Do you need to add https version to mapPage.html and http version to other pages?