Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

map #18

Open
MennaSoliman opened this issue Jul 8, 2016 · 7 comments
Open

map #18

MennaSoliman opened this issue Jul 8, 2016 · 7 comments

Comments

@MennaSoliman
Copy link

map doesn't appear on mobile but appears in browser
can anyone help me ??

@jwasilgeo
Copy link
Owner

Can you provide us with more information? Maybe some code samples of what you have so far that you think may be affecting this?

@qedgis
Copy link

qedgis commented Jul 24, 2016

i having the same problem. works fine in the browser. the thing i notice is changing the html to tabbed.html in the xml file doesn't seem to work. it still uses the index.html to display. my worksaround was to rename the "tabbed.html" to "index.html"
The app build ok, it displays a kind of inverted triangle in the emulator.

using android 6 emulator in android studio
java jdk1.8
ionic 0.7.3
node 6.3.1

@andygup
Copy link
Collaborator

andygup commented Jul 25, 2016

@qedgis Can you try running it on an actual phone? I wasn't able to repro.

Also, please include the browser's console.log and Android logcat dump here.

@qedgis
Copy link

qedgis commented Jul 25, 2016

tried on huawei p9 on android 6 and it works.

threadDump-20160725-234201.txt

@andygup
Copy link
Collaborator

andygup commented Jul 25, 2016

Any chance you can run your development builds directly on a phone and skip using the emulator?

Also can you send the entire logcat output from when the application starts until it dies? From the dump you sent I can't tell what happened up to and after the error.

@andygup
Copy link
Collaborator

andygup commented Jul 26, 2016

@qedgis @MennaSoliman It looks like there is a problem with how the Content Security Policy is being called. I was finally able to reproduce it by using a Android Studio, 5.0 (API 21) emulator. Let us know if the work-around below fixes the problem?

Go into your html file, copy and replace the entire Content-Security-Policy with the following. This adds an extra policy to handle HTTPS://npmcdn.com.

I'm not really sure why the problem is happening. We'll have to look closer at it over the next week or so, but hopefully this work-around gets you going again.

    <meta http-equiv="Content-Security-Policy"
          content="
            default-src
                'self'
                http://js.arcgis.com
                http://static.arcgis.com
                http://services.arcgisonline.com
                http://server.arcgisonline.com;
            font-src
                'self'
                http://js.arcgis.com
                data:;
            style-src 'self' http://js.arcgis.com 'unsafe-inline';
            script-src 'self' http://js.arcgis.com https://npmcdn.com http://npmcdn.com 'unsafe-eval'">

@qedgis
Copy link

qedgis commented Jul 26, 2016

Any chance you can run your development builds directly on a phone and skip using the emulator?
Not too sure how to do this..i give it a try later. New to all this mobile stuff

The work-around works in the emulator using android 6. Thanks !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants