Page 2 of 2

New Appery.IO & Windows Phone

Posted: Mon Aug 26, 2013 5:09 pm
by Andy Parker

Many thanks.


New Appery.IO & Windows Phone

Posted: Wed Aug 28, 2013 4:51 pm
by Anton Artyukh5836028

Hi Andy.

The main problem is in Windows Phone and its components. localStorage is not initialized before Device Ready event. You use it on Load and Page Show event, but they can trigger before Device Ready event.

The simplest workaround for you is create splash screen, which will navigate to you current start screen with Device Ready event.

Please, inform us about results. Thank you.


New Appery.IO & Windows Phone

Posted: Wed Aug 28, 2013 5:09 pm
by Andy Parker

Many thanks for this, I'm away at present but will implement these changes asap. Really appreciate the support your team provides.

Regards

Andy


New Appery.IO & Windows Phone

Posted: Fri Aug 30, 2013 9:29 am
by Andy Parker

OK, made the change, and added an intro page that switches to the main page on the device ready event.

That loads the app, and I no longer get the blank screen - thank you.

However, the page load and page show events do not seem to be triggered, are there specific load events that should/should not be used with Windows Phone code?


New Appery.IO & Windows Phone

Posted: Fri Aug 30, 2013 3:40 pm
by Serhii Kulibaba

Hi! Yes, Windows Phone has some problems with page loading and showing. You can try add code for executing by timeout:

prefunction allActionsOnLoad() {
//here is your code, for example alert
navigator.notification.alert("LOAD", function(){}, "It's alive","Done");
}
setTimeout(allActionsOnLoad, 1000);/pre
where 1000 - execute after 1 sec.


New Appery.IO & Windows Phone

Posted: Thu Sep 05, 2013 3:59 pm
by Andy Parker

Sorry to resurrect this thread, I have the SDK now loaded on a Win8 workstation and am using the Visual Studio 2012 for Windows Phone implementation, this has helped with development.

I have one more question to do with the page load and page show events, as Im not getting very far.

Do they actual fire? If so, is the delay needed each time a page is changed as they fire before the page is shown?

Is that what the issue is with Windows Phone?

Sorry to be a pain, but this is giving me a headache.

regards

Andy


New Appery.IO & Windows Phone

Posted: Thu Sep 05, 2013 8:28 pm
by Maryna Brodina

Hello! We'll check and update.


New Appery.IO & Windows Phone

Posted: Fri Sep 06, 2013 11:35 am
by Serhii Kulibaba

As workaround you can add "Use full screen refresh" for Navigate to page actions. In this case events load and show are fired for Windows Phone. For other platforms - all works without that.


New Appery.IO & Windows Phone

Posted: Fri Sep 06, 2013 5:21 pm
by Andy Parker

thanks, I'll try that :-)