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

Tabs not working in demo project #338

Open
ouya99 opened this issue Oct 15, 2015 · 2 comments
Open

Tabs not working in demo project #338

ouya99 opened this issue Oct 15, 2015 · 2 comments

Comments

@ouya99
Copy link

ouya99 commented Oct 15, 2015

Hi,

I wrote an app using meteor-ionic and there is a lag when touching a tab icon using ionTabs on Android.

The issue was "solved" for ionic. Is this working for meteor-ionic too?

see: http://blog.ionic.io/hybrid-apps-and-the-curse-of-the-300ms-delay/

I also tried to add the data-tap-disabled option with no luck
{{#ionTabs data-tap-disabled="true"

Furthermore meteor includes a "fastclick" package for cordova. Should this be removed then?

Thanks for any insight on this matter.

@nickw
Copy link

nickw commented Oct 15, 2015

We are including the fastclick dependency as part of meteor-ionic: https://github.com/meteoric/meteor-ionic/blob/master/package.js#L17

I would try to confirm that the package is indeed part of your project and that the necessary JavaScript is being loaded.

@ouya99
Copy link
Author

ouya99 commented Oct 15, 2015

I tested it some more. It is only the tabs that are reacting differently

I did a clean checkout of demo project (meteoric) and then "meteor update" and then "meteor run android-device". i get the following and I cannot open the tabs section. others work fine.

When clicking on Tabs from the demo list I get output : Exception from Tracker recompute function: see below

Alexanders-Air:demo alexander$ meteor run android-device
[[[[[ ~/Dev/web/demo ]]]]]

=> Started proxy.
=> Started MongoDB.

WARNING: You are testing your app on a remote device. For the mobile app to be able to connect to the local server, make sure your device is on the same network, and that the network configuration allows
clients to talk to each other (no client isolation).
=> Started your app.

=> App running at: http://localhost:3000/
I20151015-23:27:05.521(2)? ** You've set up some data subscriptions with Meteor.publish(), but
I20151015-23:27:05.523(2)? ** you still have autopublish turned on. Because autopublish is still
I20151015-23:27:05.524(2)? ** on, your Meteor.publish() calls won't have much effect. All data
I20151015-23:27:05.524(2)? ** will still be sent to all clients.
I20151015-23:27:05.524(2)? **
I20151015-23:27:05.524(2)? ** Turn off autopublish by removing the autopublish package:
I20151015-23:27:05.525(2)? **
I20151015-23:27:05.525(2)? ** $ meteor remove autopublish
I20151015-23:27:05.525(2)? **
I20151015-23:27:05.525(2)? ** .. and make sure you have Meteor.publish() and Meteor.subscribe() calls
I20151015-23:27:05.526(2)? ** for each collection that you want clients to see.
I20151015-23:27:05.526(2)?
=> Started app on Android Device.
I20151015-23:27:21.630(2) (android:http://meteor.local/:93) XMLHttpRequest cannot load http://10.0.2.2:3000/sockjs/info?cb=zeypvdmg8p. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://meteor.local' is therefore not allowed access.
I20151015-23:27:23.754(2) (android:http://meteor.local/:0) XMLHttpRequest cannot load http://10.0.2.2:3000/sockjs/info?cb=bndawdpenl. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://meteor.local' is therefore not allowed access.
I20151015-23:27:23.847(2) (android:http://meteor.local/:0) XMLHttpRequest cannot load http://10.0.2.2:3000/sockjs/info?cb=hb0nwa8nxp. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://meteor.local' is therefore not allowed access.
I20151015-23:27:29.829(2) (android:http://meteor.local/:0) XMLHttpRequest cannot load http://10.0.2.2:3000/sockjs/info?cb=tvdb5_xcdy. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://meteor.local' is therefore not allowed access.
I20151015-23:27:32.478(2) (android:http://meteor.local/plugins/cordova-plugin-console/www/console-via-logger.js:173) Exception from Tracker recompute function:
I20151015-23:27:40.531(2) (android:http://meteor.local/tabs/one:0) XMLHttpRequest cannot load http://10.0.2.2:3000/sockjs/info?cb=spqytu1e0m. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://meteor.local' is therefore not allowed access.

@ouya99 ouya99 changed the title Tap delay 300ms Tabs not working in demo project Oct 15, 2015
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