Skip to content

Commit eca0f57

Browse files
author
UnnatiCP
committed
Added setHandleUniversalLinksInAppForDomains and getHandleUniversalLinksInAppForDomains method in flutter sdk
Added `setHandleUniversalLinksInAppForDomains` and `getHandleUniversalLinksInAppForDomains` method in flutter sdk
1 parent 2fccd02 commit eca0f57

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

docs/sdks/flutter/methods.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,29 @@ You can remove all notifications from the notification center only (this does no
313313
```dart
314314
CleverPush.shared.clearNotificationsFromNotificationCenter();
315315
```
316+
317+
## Handle Universal Links In App (iOS)
318+
319+
(Available from version 1.23.30)
320+
321+
### Set domains for handling universal links in app
322+
323+
You can specify which domains should be handled as universal links inside the app instead of passing them to the system. Pass an array of domain strings. When a URL’s domain matches one of these domains, it will be delivered to your app as an in-app universal link.
324+
325+
```dart
326+
CleverPush.shared.setHandleUniversalLinksInAppForDomains([
327+
'domain1.com',
328+
'domain2.com',
329+
'cleverpush.com',
330+
]);
331+
```
332+
333+
### Get domains for handling universal links in app
334+
335+
You can retrieve the list of domains that are currently configured to handle universal links inside the app. Returns `null` if no domains have been set.
336+
337+
```dart
338+
final List<String>? domains = await CleverPush.shared.getHandleUniversalLinksInAppForDomains();
339+
```
340+
341+
**Note:** These methods are iOS-only. On Android they have no effect; `getHandleUniversalLinksInAppForDomains` returns `null`.

0 commit comments

Comments
 (0)