Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Hello Appery Team!

I've started this thread to try and solve some minor unresolved issues in my app before I try to release it on to the various marketplaces. So exciting!!

The app should be shared with the team.

The following issues are present:

  1. The Google Adwords html shows up sometimes on my "website" page, but not all the time.

  2. On the "map" page, the "show location" button yields fairly sporadic results. Generally, something is populated in the "inputSource" component, but the google "directionsMap" component blinks continually after the button is clicked. It seems to show the location, but it continues to blink.

  3. The default image in the "icon" component on "weather" page doesn't show up until after weather is requested by clicking the "get weather" button. Is there a way to get weather by the device's coarse location? Basically by using the same process as the "map" page's "show location" button click event?

  4. The "camera" page "icon" component image doesn't show up either. Also, once the picture is taken with the camera component, could the image be shared using the same method as discussed at the end of the rather lengthy "Journey Recording using GPS Tracking" thread here: https://getsatisfaction.com/apperyio/...

    Or is there a better, more simple way?

    As always, thank you so much for your help!

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Miscellaneous Issues with App

Hello,

We'll check this but it will take some time.

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Also, is there a way to increase the height of the html component on the "website" page. I've tried different things, but if I set a higher pixel number for height, or set it to 100%, or auto, all these approaches yield the same results, and the height doesn't really comply with my goal. Is there something interfering with the height in this html panel?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Miscellaneous Issues with App

Hi Joe,

1) Did you add it to each page?
2) Are there any console errors at the moment?
3) How do you get weather data? If you need coordinates to do this - then yes, you can.
4) Please check if the image is available on the link.

To set height use vh, for example 100vh; (read more here: http://snook.ca/archives/html_and_css...)

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Hi Katya,

  1. The Adwords ads are on the website page, weather page, camera page, and music page. It only seems to occasionally have trouble loading on the "website" page. (this isn't really a huge problem I suppose.)

  2. No console errors that I can see.

  3. The weather data is gotten through zip code or city, state. Could I reverse geocode to populate a city, state in the input field on "weather" page?

  4. I think the image link had expired, so I reuploaded the image, and it appears fine. But how can I have the user share this image via Facebook and Twitter? If I were to follow this tutorial: http://docs.appery.io/tutorials/using...
    What would that actually do for the user? Simply save the image in the Appery database server? Is this applicable to the jqplots on "results" page once they are populated?

  5. In regard to the "show location" button on "map" page, the location is shown, but nothing is populated in the "start" input component.

    Thanks very much!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Miscellaneous Issues with App

Hello!
2) Try to add alerts on service success event on map page and check how often alerts are triggered. Perhaps your service invokes a few times and map blinks.
3) Yes, Google ReverseGeocoding returns also postal_code https://developers.google.com/maps/do.... Use it to get weather
4) We think you should save image in Files DB collection and use direct link to image to share it http://docs.appery.io/documentation/b... (see Direct link to a file)

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Hey Maryna!

Where is your holiday hat?

1) I'm sorry, what is the proper jquery alert code? Would I add it on event page load?
codealert(geolocation1("success"));/code
2) I'm not overly concerned with adding this feature now, perhaps down the road in an update of some type.
3) I suppose I could store the image in the database, but I think I recall storing it in the phone localstorage, and being able to share the image once taken by clicking on it (I thought my Android phone prompted me different action options upon clicking the image). Am I mistaken? Is there a way to store the image in localStorage and share it from the "camera" page?

Once more, thank you very much.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Miscellaneous Issues with App

Hey Joe! I'm with hat now:)
1) No, on Data tab on geolocation service success event add JS action with the following code prealert("success");/pre3) Yes, you can do this way. Try this plugin https://github.com/EddyVerbruggen/Soc...

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Thanks Maryna! The hat looks good.

1) The alert box keeps appearing when I click "show location," and may appear also when I click "get directions." It continually appears and doesn't stop.

Thanks for the link!

2) I just wanted to make sure I correctly installed the plugin. I've added screenshots where I have manually added the files/code to my project. I haven't saved it yet, I wanted to be sure that I installed it correctly.

Thanks for your help!

Image Image Image Image Image Image Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Miscellaneous Issues with App

Hello! [quote:]1) The alert box keeps appearing when I click "show location," and may appear also when I click "get directions." It continually appears and doesn't stop[/quote]every time device defines location Geolocation Service is invoked and Alert is shown. As alert is shown constantly that means device location is updated constantly. You can try to set watchPosition=false in Geolocation service request parameters. This way you'll get coordinates just once. [quote:]2) I just wanted to make sure I correctly installed the plugin. I've added screenshots where I have manually added the files/code to my project. I haven't saved it yet, I wanted to be sure that I installed it correctly. [/quote]as we can see from the screenshots in AppSettings External Resources libraries version set to 1.0. That means you have 2.4.0 PhoneGap version in your app, so you need another plugin version https://github.com/EddyVerbruggen/Soc.... On first and second screenshots we see you didn't add plugin in config.xml file. Add for Android pre<plugin name="SocialSharing" value="nl&#46;xservices&#46;plugins&#46;SocialSharing" &#47;>/preOn third screenshot you've edited AndroidManifest.xml file, but it's not necessary to do that because Appery.io apps already have "WRITE_EXTERNAL_STORAGE" permission.

On fifth screenshot you've edited "index.html" file, but you don't need to do that because you had added JavaScript asset on fourths screenshot.

On seventh screenshot there is content of SocialSharing.java file, but it's not correct. There should be https://raw.github.com/EddyVerbruggen....

After these changes plugin should work (we've checked on Android device).

Return to “Issues”