Skip to content

Commit d1a5729

Browse files
committed
Set autoHandleLinks default to false for safer behavior
1 parent 73ff392 commit d1a5729

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Main initialization method that handles everything for most apps:
236236
- `projectId`: Your PNTA project ID (format: `prj_XXXXXXXXX`) from [app.pnta.io](https://app.pnta.io)
237237
- `metadata`: Optional device metadata to include during registration
238238
- `registerDevice`: Whether to register device immediately (default: `true`)
239-
- `autoHandleLinks`: Automatically handle `link_to` URLs when notifications are tapped (default: `true`)
239+
- `autoHandleLinks`: Automatically handle `link_to` URLs when notifications are tapped (default: `false`)
240240
- `showSystemUI`: Show system notification banner/sound when app is in foreground (default: `false`)
241241

242242
Returns `Future<String?>` - the device token if device was registered, null otherwise.

lib/pnta_flutter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PntaFlutter {
3030
String projectId, {
3131
Map<String, dynamic>? metadata,
3232
bool registerDevice = true,
33-
bool autoHandleLinks = true,
33+
bool autoHandleLinks = false,
3434
bool showSystemUI = false,
3535
}) async {
3636
if (_config != null) {

0 commit comments

Comments
 (0)