Synerise / synerise-flutter-sdk

Synerise SDK plugin for Flutter
Apache License 2.0
5 stars 0 forks source link

Open URL action from simple push is not invoked properly on iOS #5

Closed tomkadziolka closed 3 months ago

tomkadziolka commented 1 year ago

Version: 0.7.0

The notification is delivered to a device and user is able to click it but nothing happens on iOS, on Android browser with included link is opened.

iOS Logs:

[SyneriseSDK v4.14.3] [INFO] Notifications: Notification received
flutter: \^[[38;5;12m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[SyneriseSDK v4.14.3] [INFO] Campaigns: resolve 'Simple Push' campaign
[SyneriseSDK v4.14.3] [DEBUG] Campaigns: 'Simple Push' campaign - parsing success

...

[SyneriseSDK v4.14.3] [INFO] Notifications: Notification received
flutter: \^[[38;5;12m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
flutter: \^[[38;5;12m│ 14:21:24.217 (+0:07:31.691019)<…>
flutter: \^[[38;5;12m├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄<…>
2023-09-19 14:21:24.218414+0200 u2023-09-19 14:21:24.218483+0200 uat[21668:2458763] flutter: \^[[38;5;12m│ 💡 223441994 notification opened from background<…>
at[21668:2458704] [SyneriseSDK v4.14.3] [INFO] Campaigns: resolve 'Simple Push' campaign
flutter: \^[[38;5;12m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
[SyneriseSDK v4.14.3] [DEBUG] Campaigns: 'Simple Push' campaign - parsing success
[SyneriseSDK v4.14.3] [INFO] Synerise SDK: execute `URL Action` (https://example.com)
[SyneriseSDK v4.14.3] [INFO] Tracker: Auto-Flush timer started
[SyneriseSDK v4.14.3] [INFO] In-app messaging: Service notified about event (push.click)
[SyneriseSDK v4.14.3] [INFO] Tracker: Event added to tracker queue: {
    action = "push.click";
    client =     {
        uuid = "18f4853c-454c-3771-9b07-d95d6274f896";
    };
    label = "LAB Open example Tomek Dev (11)";
    params =     {
        campaignTitle = "LAB Open example Tomek Dev (11)";
        campaignType = "Mobile push";
        customIdentify = 000300001;
        id = "7c165011-ad8c-4062-a1ea-46e2a0c2de11";
        source = "MOBILE_APP";
        variantId = 9686080;
    };
    type = custom;
}
[SyneriseSDK v4.14.3] [INFO] In-app messaging: Start of triggering (push.click)
[SyneriseSDK v4.14.3] [INFO] In-app messaging: There is no definitions that should be triggered for the event
[SyneriseSDK v4.14.3] [INFO] In-app messaging: Finish of triggering (push.click)
[SyneriseSDK v4.14.3] [INFO] Tracker: Auto-Flush timer stopped
[SyneriseSDK v4.14.3] [INFO] Tracker: Auto-Flush timer fired
[SyneriseSDK v4.14.3] [DEBUG] Tracker: Sending events started
[SyneriseSDK v4.14.3] [DEBUG] Tracker: Successfully sent 1 events in batch
[SyneriseSDK v4.14.3] [DEBUG] Tracker: Sending events finished. Total number of sent events : 1. Total number of rejected events: 0
soczowinski commented 1 year ago

Have you checked out this article in our help center? Did you include your own action handling in the onOpenUrl listener?

tomkadziolka commented 1 year ago

During development I tried many times to use these callbacks but they were not called.

I tried to open in your example but nothing happened, and dialog should be shown: image

Action not invoked in example:

https://github.com/Synerise/synerise-flutter-sdk/assets/124564649/8fd7fac3-7005-43ef-aeab-c5c4934cb3fb

awoczek commented 10 months ago

We have updated the documentation regarding Firebase and Synerise settings: https://hub.synerise.com/developers/mobile-sdk/configuring-push-notifications/flutter/#set-up-firebase-cloud-messaging-for-synerise-sdk

Also check the updated example: https://github.com/Synerise/synerise-flutter-sdk/tree/main/example

tmaxxdd commented 9 months ago

@awoczek Thank you.

I will try to match my code with the example one and see if anythings changed.

tomkad99 commented 3 months ago

@awoczek

After update to 1.1.1 the methods onOpenUrl and onDeepLink are working properly.