A plugin to modify the Cordova start page in run time.
This plugin let's you change the start page to different URLs, not restricted by the widget.content.src entry in config.xml which normally is static until you provide an application update.
First, reference the plugin with:
var startpage = cordova.require('cordova-plugin-startpage.StartPagePlugin');
startpage.setStartPageUrl('http://myUrl.com', function success(){}, function error(){});
startpage.loadContentSrc();
Load the current start page (the last one you set, will fallback to widget.content.src if nothing was set)
startpage.loadStartPage();
startpage.resetStartPageToContentSrc(function success(){}, function error(){});
If you define <preference name="IncludeVersionInStartPageUrl" value="true" />
in your config.xml, the plugin will communicate to cordova to load the page requests with additional URL query params: nativeVersion
and buildVersion
of your application.
- Only iOS and Android are supported for now.
- Verified all functionality on Cordova 6.2.0.