All Products
Search
Document Center

Mobile Platform as a Service:10.1.60 upgrade guide

Last Updated:Feb 23, 2021

Initialize container

  • Time of initialization: Before loading the framework, call it in - (void)application:(UIApplication *)application beforeDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions of DTFrameworkInterface.
    initialize
  • If the baseline of the existing project is 10.1.32:

    • Modify the path of custom JsApi and the path of preset offline package and its information:
      initNebulaWithCustomPresetApplistPath must be called it in - (void)application:(UIApplication *)application afterDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions of DTFrameworkInterface.
      change path

    • Specify the configurations, including the basic class of all HTML5 pages / Global resource package / UA / Whether to verify the signature, and so on:
      After container initialization, set it in - (void)application:(UIApplication *)application afterDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions of DTFrameworkInterface, otherwise it will be overwritten by the default configuration of the container.
      change configuration

Container basic class

  • Custom basic class of all HTML5 pages, it must be the subclass of H5WebViewController.
    H5WebViewController
  • If back method is implemented in the original HTML5 basic class, it need to be deleted.
    delete back

Custom navigation bar

  • Return button: Monitor kNBEvent_Scene_NavigationItem_Left_Back_Create_Before event, modify the default style of the navigation bar.
    change navi