B4i-Bridge is an application that you install on the device.
It has three purposes:
1. Launch the installation process when needed.
2. Run the installed app (when installation is not needed).
3. The bridge is also the WYSIWYG visual designer.
You need to install B4i-Bridge once. It is done from the device browser.
Before you install B4i-Bridge you must install the B4I certificate. This step is not shown in the video.
Open Safari (device browser) and navigate to: www.b4x.com/ca.pem
This video tutorial shows the steps required in order to install B4i-Bridge.
The important steps are:
- Set the package name based on the provision app id.
- Build B4i-Bridge: Tools -> Build Server -> Build B4i-Bridge
- Open mobile Safari and navigate to the link displayed in the compilation window.
- Install B4i-Bridge and run it.
Make sure to see the video in HD mode (press on the small gear button to change mode):
Note that this is a real device. Not an emulator.
Tips:
- You don't need to wait for the installation animation to complete. Once the animation starts you can click on the app icon.
- If the installation is stuck in the "waiting" step for more than 10 or 15 seconds then uninstall it and install it again.
- B4i-Bridge must be in the foreground for it to be able to start an installation or to run the application. In most cases it will be in the foreground automatically. If it is not in the foreground then you need to click on it to bring it to the foreground.
Troubleshooting:
Device errors:
1. Make sure that the B4I certificate is installed. You can check it under Settings - General - Profile:
2. Make sure that the mobile provisioning file includes the device UDID.
3. If it doesn't help restart the phone and try again.
Compilation errors:
1. First follow the steps in this tutorial:
http://www.b4x.com/android/forum/threads/creating-a-certificate-and-provisioning-profile.45880/
2. Make sure that the App Id ends with a wildcard.