Hello experts;

I am developing an application using Cordova + Ionic framework that
supports iOS and Android platform.  Due to performance issue on android,  i
have implemented crosswalk library and it's working perfectly fine on
android.

I am having 2 issues with CrossWalk library:

1)  Disabling console.log
I have removed cordova console plugin and logs are removed from iOS
devices.  But for android (without crosswalk)  i had to change class to
disable logs.  Now crosswalk is not using that class.  can anyone tell me
how to disable logs (console.log) using crosswalk library in my android
project?

2)  Device detection
I am using cordova's *navigator.userAgent* to detect device.  Before
introducing crosswalk,  it was working fine.  But crosswalk adds "Mobile
Crosswalk" in userAgent and i can not identify whether it's Android Phone
or Android Tablet.  Can anybody suggest solution to detect whether the
device is Android Mobile or Android Tablet  ( yes,  i still can
differentiate iPhone and iPad but not tablet or phone).

regards,
Rajil Davda
Applied Software
_______________________________________________
Crosswalk-dev mailing list
Crosswalk-dev@lists.crosswalk-project.org
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to