Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

New Appery.IO & Windows Phone

Many thanks.

Anton Artyukh5836028
Posts: 0
Joined: Wed May 08, 2013 12:57 pm

New Appery.IO & Windows Phone

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.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

New Appery.IO & Windows Phone

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

Regards

Andy

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

New Appery.IO & Windows Phone

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

New Appery.IO & Windows Phone

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.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

New Appery.IO & Windows Phone

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

New Appery.IO & Windows Phone

Hello! We'll check and update.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

New Appery.IO & Windows Phone

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.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

New Appery.IO & Windows Phone

thanks, I'll try that :-)

Return to “Issues”