locked
How to interrupt app launch for the first launch

    Question

  • We want a preferences page to appear on the first launch of the app. I thought I was doing it right by detecting the existence of the remote data we save. I do this in the default.js app.onloaded event. However, if I do it there page layout gets halted and some of my ListViews never get populated even when returning to the page.

    Is there a best practice for doing this type of activity?

    Thanks,

    Todd

    Wednesday, May 2, 2012 10:40 PM

Answers

  • Hi Todd,

    You can use a pattern similar to the built in templates for Grid and Split view.  Default.js will have the logic and navigate you to your 'first time.htm' page.  After that have it nagivate to your 'homepage.htm'.

    Make sense?

    -Jeff


    Jeff Sanders (MSFT)

    Thursday, May 3, 2012 12:27 PM
    Moderator

All replies

  • Hi Todd,

    You can use a pattern similar to the built in templates for Grid and Split view.  Default.js will have the logic and navigate you to your 'first time.htm' page.  After that have it nagivate to your 'homepage.htm'.

    Make sense?

    -Jeff


    Jeff Sanders (MSFT)

    Thursday, May 3, 2012 12:27 PM
    Moderator
  • I was doing it this way and I'm sorry for not making it clear. Turns out my problem was easily solved by just refactoring some things into logical events and fixing some CSS. Sorry for the trouble.

    Todd

    Thursday, May 3, 2012 6:16 PM