Web and native code in iPhone, iPad, and Android
Use IBM MobileFirst Platform Foundation, we can include, in the applications, pages that are developed in the native operating system language.
The natively developed pages can be invoked from the web-based pages and can then return control to the web view. We can pass data from the web page to the native page, and return data in the opposite direction. We can also animate the transition between the pages in both directions.
- Switching between native and web views
In iOS and Android applications, natively developed pages can be invoked from the web-based pages and can then return control to the web view and vice versa. We can pass data from the web page to the native page, and return data in the opposite direction. We can also animate the transition between the pages in both directions.
- Receiving data from the web view in an Objective-C page
To receive data from the calling web view, follow these instructions.
- Returning control to the web view from an Objective-C page
To switch back to the web view, follow these instructions.
- Animating the transition from an Objective-C page to a web view
To implement a transition animation when switching the display from the native page to the web view, follow these instructions.
- Animating the transition from a web view to an Objective-C page
To implement a transition animation when switching the display from the web view to the native page, follow these instructions.
- Receiving data from the web view in a Java page
To receive data from the calling web view, follow these instructions.
- Returning control to the web view from a Java page
To switch back to the web view, follow these instructions
- Animating the transitions from and to a Java page
To animate the transitions between a web view and a native page, follow these instructions.
- Guidelines for using native code in MobileFirst projects
Follow these guidelines to keep the project's native code intact during a build.
Parent topic: Develop hybrid and web applications