Navigation
Control navigation and where users go when they leave. Applies to: All integrations.
| Parameter | Type | Default | Applies to | What it does internally |
| instantRedirect | string | none | All | Opens the given in-app route as soon as a message carrying it arrives (even before verification finishes). A leading / is added if missing. There is no allowlist: an unknown route lands on the not-found screen |
| exitUrl | string | none | All (standalone and link launches) | For launches with no host app: after exit_kinestex is posted, the browser is sent to this URL. Accepts http:// or https:// URLs and app deep links (clientapp://home); script schemes (javascript:, data:, vbscript:) are rejected |
Both are applied from any message that carries them, not only the first launch.
Navigation Control
Swift example:
1kinestex.createWorkoutView( // same customParams on every create*View method
2 workout: "Fitness Lite",
3 user: nil,
4 style: nil,
5 isLoading: $isLoading,
6 customParams: [
7 "instantRedirect": "/personalized-plan",
8 "exitUrl": "clientapp://home"
9 ],
10 onMessageReceived: { message in /* ... */ }
11)Kotlin example:
KinesteXSDK.createWorkoutView( // same customParams on every create*View method
context = this,
workoutName = "Fitness Lite",
customParams = mutableMapOf(
"instantRedirect" to "/personalized-plan",
"exitUrl" to "clientapp://home"
),
isLoading = viewModel.isLoading,
onMessageReceived = { message -> handleWebViewMessage(message) },
permissionHandler = this
)React Native example:
const postData: IPostData = {
key: 'YOUR_API_KEY',
userId: 'user-123',
company: 'YOUR_COMPANY',
customParameters: {
instantRedirect: '/personalized-plan',
exitUrl: 'clientapp://home',
},
};Flutter example:
KinesteXAIFramework.createWorkoutView( // same customParams on every create*View method
workoutName: "Fitness Lite",
customParams: {
"instantRedirect": "/personalized-plan",
"exitUrl": "clientapp://home",
},
isShowKinestex: showKinesteX,
isLoading: isLoading,
onMessageReceived: handleMessage,
);HTML & JS example:
const postData = {
userId: "user-123",
company: "YOUR_COMPANY",
key: "YOUR_API_KEY",
instantRedirect: "/personalized-plan",
exitUrl: "https://yourapp.com/home",
};React TS (Web) example:
const postData: IPostData = {
key: 'YOUR_API_KEY',
userId: 'user-123',
company: 'YOUR_COMPANY',
customParameters: {
instantRedirect: '/personalized-plan',
exitUrl: 'https://yourapp.com/home',
},
};