Cordial

Deep Linking

Set up Deep Linking within your app and notification links will automatically open directly into your app.

JavaScript Bridge Functions

Prompt for Push Notification Permission

Request Push Notification permission, will show a dialog for users to confirm permission. For Android the dialog is only shown on Android 13 and above. Android 12 and below will always be granted without user intervention.

Provide a callback function or otherwise a promise is returned.

↔️GoNative JavaScript Bridge

gonative.cordial.requestPermission({'callback': function});

Check Push Notification Permission Status

Provide a callback function or otherwise a promise is returned.

↔️GoNative JavaScript Bridge

gonative.cordial.permissionStatus({'callback': function});

Set Contact

Register a new user or update an existing user.

↔️GoNative JavaScript Bridge

gonative.cordial.setContact({
  primaryKey: "[email protected]"
});

Unset Contact

Logout the current user

↔️GoNative JavaScript Bridge

gonative.cordial.unsetContact();