Thursday 15 May 2014

ibm mobilefirst - IBM Worklight 5.0.x - Changing the main HTML filename -


I want to keep my main HTML file different from my project.

I've found that if I do not use the same name then the vColl will not be reconnected. I change the mainfile tag in application-discriptor.xml and the wallet on ISO. Change the wlMainFile entry in the listener Have tried.

Direct updates do not work. More importantly, the app is not reconnecting and I get a white screen (possible because IOS is trying to use the wrong file ).

For example:

  Project name: MyPorces main file: home.html application-discriptor.xml: & lt; Mainfile & gt; Home.html & lt; / MainFile & gt; Worklight.plist: & lt; WlMainFile & gt; Home.html & lt; / WlMainFile & gt;   

The above does not work.

[edit later to add my application-descriptor.xml]

   & Lt; Security & gt; & Lt; EncryptWebResources enabled = "false" /> & Lt; TestWebResourcesChecksum enabled = "false" undefinedFile extension = "PNG, jpg, jpeg, gif, mp4, mp3" /> & Lt; / Safety & gt; & Lt; / Ipad & gt; & Lt ;! - - & gt; & Lt; Android version = "1.0" & gt; & Lt; WorklightSettings include = "true" /> & Lt; Security & gt; & Lt; EncryptWebResources enabled = "false" /> & Lt; TestWebResourcesChecksum enabled = "false" undefinedFile extension = "PNG, jpg, jpeg, gif, mp4, mp3" /> & Lt; PublicSigningKey & gt; Replace this text with the public key of that certificate, along with which you sign the APK for details refer to the developer developer's reference guide. & Lt; / Publicsigning & gt; & Lt; / Safety & gt; & Lt; / Android & gt; & Lt; WorklightServerRootURL & gt; Http: // $ {local.IPAddress}: 8080 & lt; / WorklightServerRootURL & gt; & Lt; / Application & gt;   

So, to be clear, if I had to face a problem with my main file, then there is no name in addition to the project name, filename specified by the main file Does, especially after the initial use of the application.

If changing the HTML file name, be sure to change it as well:

  1. Application folder name
  2. In the application-descriptor.xml: < main file element value

    Everyone should match with each other.

    Make sure to delete the original folder and recreate the project. The application will continue after the first load, and the direct update function will continue.

No comments:

Post a Comment