Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running in Android emulator: A history state object with URL 'http://10.0.2.2:3000/...' cannot be created in a document with origin 'http://meteor.local' #14

Open
svub opened this issue Mar 6, 2015 · 2 comments

Comments

@svub
Copy link

svub commented Mar 6, 2015

I'm using Iron Router (latest version on latest version of Meteor) for my app and it runs smoothly on desktop devices. Now, I'm trying to pack it as an app for Android, but I get following error:
I20150306-16:56:52.261(2) (android:http://meteor.local/packages/meteor.js:913) Exception from Tracker afterFlush function: Error: A history state object with URL 'http://10.0.2.2:3000/search/_/_/_/10' cannot be created in a document with origin 'http://meteor.local'. I20150306-16:56:52.261(2)? at http://meteor.local/packages/iron_location.js?ca4f0f6672edbfb6cafab6e5c024208d9364eac9:296:21 I20150306-16:56:52.261(2)? at Tracker.flush (http://meteor.local/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:448:11)

When I run it via meteor run android --mobile-server meteor.local I get the following error instead
I20150306-17:05:16.358(2) (android:http://meteor.local/:1) Uncaught SyntaxError: Unexpected token < which I assume having to do with that the socket connection gets and 404 error page (in HTML, thus starting with an <) where it is expecting to get data.

@viktornord
Copy link

@svub Have you managed to solve this issue? I am getting such an error as well.

@svub
Copy link
Author

svub commented May 14, 2016

It was quite a while ago, but if I remember correctly, it was due to the
version of Android on my phone, meteor and the entire environment setup
supports 4+ only.
On May 14, 2016 1:10 AM, "Victor Urbanas" [email protected] wrote:

@svub https://github.com/svub Have you managed to solve this issue? I
am getting such an error as well.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#14 (comment)

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

No branches or pull requests

2 participants