meteor / solomo

The demo we showed at Meteor Devshop August 2014 of Meteor Mobile integration. This code has moved to the examples folder in meteor/mobile-packages.
30 stars 5 forks source link

android platform in conflict with ios ? #2

Closed grigio closed 9 years ago

grigio commented 9 years ago

The web version works but I get an error in the Android version

meteor run android-device -p meteor-ip-server:3000
...
r/CDVStatusBar.m:284:32: error: use of undeclared identifier 'UIStatusBarStyleLightContent'
    [self setStyleForStatusBar:UIStatusBarStyleLightContent];
                               ^
1 error generated.

Then I run:

meteor remove-platform ios
removed platform ios

but i get:

=> Started proxy.
I20140825-20:33:43.056(2)? --------- beginning of /dev/log/main
Unexpected mongo exit code null. Restarting.
=> Started MongoDB.     
=> Started your app.   

=> App running at: http://192.168.1.8:3000/
I20140825-20:34:02.615(2)? --------- beginning of /dev/log/system
I20140825-20:34:19.766(2)? Changing log level to DEBUG(3)
I20140825-20:34:19.767(2)? Found start page location: index.html
I20140825-20:34:24.216(2)? Changing log level to DEBUG(3)
I20140825-20:34:24.216(2)? Found start page location: index.html
I20140825-20:34:26.135(2) (android:meteor_cordova_loader.js:11) Uncaught TypeError: Illegal constructor
I20140825-20:34:35.275(2)? Changing log level to DEBUG(3)
I20140825-20:34:35.276(2)? Found start page location: index.html

..and a white screen on the android smartphone.

Slava commented 9 years ago

Just looking at your error message Uncaught TypeError: Illegal constructor, it looks like your android emulator doesn't know what is Event constructor. Can you give us more info on your android emulator/device? Is it old version of Android?

grigio commented 9 years ago

My device is Android 4.2.2, the android tools/sdk are the one installed by meteor platform I suppose

Slava commented 9 years ago

I linked a new issue on meteor/meteor. Your android version is older than what we tested on and in those versions Event doesn't work.

Slava commented 9 years ago

Fixed on Meteor#cordova-hcp. Will be released in next preview.

https://github.com/meteor/meteor/commit/d7cc32ccd30e5f701dbf8b9a18591c4bd47133b9

grigio commented 9 years ago

Sorry @Slava how can I test that branch? I tried meteor --release cordova-hcp but it's for the releases