AppHub Starter Project
In this project, we prompt the user with a
UIAlertView when an update becomes available. The user can choose to
"Update" the app instantly, or press "Cancel", in which case the app will be updated upon restart.
All AppHub specific code can be found in AppDelegate.m.
To get started, clone or fork this repo and run:
in the root directory.
iOS/AppHubStarterProject.xcodeproj and set your Application ID as specified from the
[AppHub setApplicationID:@"APPLICATION ID"];
Once you have set the Application ID, hit run in Xcode.
Take a look at the options inside the
sourceURLForBridge: method of AppDelegate.m.
You should use "Option 1" while developing, and switch to "Option 2" when deploying to beta and production users.
Creating AppHub Builds
To update your app, use the AppHub CLI to build a .zip of your app. You can then use the AppHub Dashboard or REST API to upload the build.