New Appery.IO & Windows Phone
Many thanks.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Many thanks.
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.
Many thanks for this, I'm away at present but will implement these changes asap. Really appreciate the support your team provides.
Regards
Andy
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?
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.
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
Hello! We'll check and update.
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.
thanks, I'll try that ![]()