santekotturi / places-demo

An ionic demo using ngCordova Geolocation, Google Maps and Google Places nearby search
20 stars 12 forks source link

Cannot show google map and google place nearby on real Android device #2

Open decodedmrq opened 9 years ago

decodedmrq commented 9 years ago

Hi everyone, I'm implemented this demo. but for some reason it doesn't show in real android device, Couldn't get working "Angular Google Maps" and "Angular Google places" in real android device.

santekotturi commented 9 years ago

please provide the relevant section of logcat when running the app. This will help diagnose the issue.

If you're unfamiliar with Android's adb logcat: http://developer.android.com/tools/help/logcat.html

santekotturi commented 9 years ago

Also, it looks like the geolocation plugin has changed its name, instead of: cordova plugin add org.apache.cordova.geolocation you should use: cordova plugin add cordova-plugin-geolocation

You could also try looking which version of the angular-google-maps plugin you're using, this demo was built using 2.0.+, looks like they're on 2.2.+ http://angular-ui.github.io/angular-google-maps/#!/

decodedmrq commented 9 years ago

Hi skotturi, thank you! I will check this out.

santekotturi commented 9 years ago

@quyennvse02884 how'd it go?

decodedmrq commented 9 years ago

@skotturi : This is adb logcat file: sdsdsd

Please help me check ! Cheers in advance.

kalyan commented 9 years ago

use the cordova white-list plugin

you need to add that plugin

On Thu, Oct 29, 2015 at 10:15 AM, quyennvse02884 notifications@github.com wrote:

@skotturi https://github.com/skotturi : This is adb logcat file: [image: sdsdsd] https://cloud.githubusercontent.com/assets/8041493/10810337/74e5a7a2-7e32-11e5-80dd-5951d86b1f64.png

Please help me check ! Cheers in advance.

— Reply to this email directly or view it on GitHub https://github.com/skotturi/places-demo/issues/2#issuecomment-152074851.

https://play.google.com/store/apps/details?id=com.fph.colorgame https://play.google.com/store/apps/details?id=com.fph.shootthebird

Download our latest android game. Coloring App for Toddlers/ Kids. Please share it and give feedback

Kalyanjit Hatibaruah CEO Flugelsoft Software Pvt Ltd www.flugelsoft.com

ERP Business Solutions / Mobile Application Development/Game Development for Branding/Internet Marketing Solutions/Business Solutions to increase Sales.

SKYPE - kalyanjit GoogleTalk - kalyanjit@gmail.com

Join us on Twitter, Facebook and LinkedIn for company updates:

http://www.twitter.com/flugelsoft http://www.facebook.com/flugelsoft http://www.linkedin.com/company/flugelsoft

Call Us at +1 -818- 574-3596 +44 -20- 8123-6463 +91- 9864011106

decodedmrq commented 9 years ago

@kalyan I haved add cordova white-list plugin and re-build "cordova build android". App @skotturi 's is using googleapis. So adb logcat fired error about "Content Security Policy": message error of logcat: “No Content-Security-Policy meta tag found.” So I searched and add meta tag in my index file. But it's not working. Some idea? ac

issue No Content-Security-Policy meta tag found.: http://stackoverflow.com/questions/30212306/no-content-security-policy-meta-tag-found-error-in-my-phonegap-application

Doc Content Security Policy Whitelist: https://github.com/apache/cordova-plugin-whitelist Anyone some idea ? Thanks so much

santekotturi commented 9 years ago

@quyennvse02884 were you able to implement the stackoverflow solution and try that? Basically just add <allow-navigation href="http://*/*" /> to your config.xml and try rebuilding the android app.

Note: allowing all urls like this is not something you want to use in production but it can be ok for testing/debuggin.

iamjinme commented 9 years ago

@quyennvse02884 I use this directive and angular-google-maps working.

<meta http-equiv="Content-Security-Policy" content="default-src *; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src  'self' 'unsafe-inline' *">

Is not good for production.