iron-meteor/iron-location

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'

Opened this issue · 2 comments

svub commented

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.

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

svub commented

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" notifications@github.com 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)