WAB - Splash Screen

2381
15
Jump to solution
07-19-2016 02:46 PM
RickeyFight
MVP Regular Contributor

I am getting some weird behavior.

My splash screen works in the builder but when I launch the webapp or download it to my server it will not display the splash screen.

Builder:

Launched Webapp:

Here is the config.json

I did not change any code so I would think it would work. I am not getting any errors in the console log either.

      {
        "uri": "widgets/Splash/Widget",
        "position": {
          "relativeTo": "browser"
        },
        "version": "2.0.1",
        "id": "widgets_Splash_Widget_29",
        "name": "Splash",
        "label": "Splash",
        "config": "configs/Splash/config_Splash.json"
      },

      {
          "uri": "widgets/Splash/Widget",
          "visible": true,
          "position": {
            "relativeTo": "browser"
          },
          "version": "2.0.1"
        },

Do you have any suggestions or things I can try?

Thanks

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Rickey,

  Yes that is something that I would try.

Have you created a brand new app with the splash for testing if it ends up with the same issue?

View solution in original post

15 Replies
deleted-user-CQZbjNeBXm49
Occasional Contributor III

What is your "config_Splash.json" like....?

0 Kudos
RickeyFight
MVP Regular Contributor
{
  "splash": {
    "splashContent": "<div style=\"text-align: center;\"><p class=\"MsoNormal\" style=\"margin-left:.5in\"><i><font size=\"3\">“TEXT”</font><o:p></o:p></i></p></div>",
    "requireConfirm": true,
    "confirmText": "I agree to the above terms and conditions",
    "showOption": true,
    "confirmEverytime": true,
    "backgroundColor": "#0d458d"
  }
}
0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Ricky,

  Your two code blocks in your post, which is which? Have you tried putting a break point in the Splash Widget.js code to see if you are getting to it?

0 Kudos
RickeyFight
MVP Regular Contributor

Robert those two blocks are the ones that refer to the splash widget in  \server\apps\3\config.json

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Rickey,

  So that is strange that you have the splash referred to twice in the config.json. When I add the splash widget I only have this one object in the config.json:

      {
        "uri": "widgets/Splash/Widget",
        "position": {
          "relativeTo": "browser"
        },
        "version": "2.1",
        "id": "widgets_Splash_Widget_14",
        "icon": "widgets/Splash/images/icon.png?wab_dv=2.1",
        "name": "Splash",
        "label": "Splash",
        "config": "configs/Splash/config_Splash.json"
      },
RickeyFight
MVP Regular Contributor

The first section is under widgetOnScreen and the other one is under mobileLayout

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Rickey,

  So the app was downloaded from AGOL?

0 Kudos
RickeyFight
MVP Regular Contributor

No, I created it in WAB.

I have another test app that I made and it too would not display a splash screen when I "launched" it.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Rickey,

  Strange I have not come across this before.

0 Kudos