понедельник, 22 сентября 2014 г.

Ionic and WP8



Still, there is no official support for windows phone apps in ionic framework, fortunately guys working on it. Still you can try it right now, each new version of framework make it smoother build ionic wp8 app.

There is some links and troubleshoots learned while building surf-better application.

1. This thread summarize basic wp8 problems
2. This is current version of MainPage.xaml corrected accordingly.
3. Embedded icons problem addressed here. In current version only needed to remove all query strings from fonts definitions in css.
4. Weird problem with weinre, it just eaten up all http requests, you can see them in console  but after they don't received by application, have to remove weinre script from app.
5. Disable bouncy scrolling for container
   // Constructor
        public MainPage()
        {
            InitializeComponent();
            this.CordovaView.Loaded += CordovaView_Loaded;
            this.CordovaView.DisableBouncyScrolling = true;
        }
or in MainPage.xaml
  <my:CordovaView DisableBouncyScrolling = true; 
or (prferred) config.xml
<preference name="DisableBouncyScrolling" value="true"/>

Build / Run

1. ionic cordova platform add wp8
2. ionic cordova build wp8
3. Update MainPage.xml if still didn't.
4. Open VS run Device button (phone must be connected, registered and lock screen unlocked)

Environment

VS 2013 Update 3, WP 8.1, cordova 3.6.3-0.2.13, ionic 1.1.9, weinre  2.0.0-pre-HZO3BMNG



Комментариев нет:

Отправить комментарий