CleverTap / clevertap-flutter

CleverTap Flutter SDK
Other
30 stars 42 forks source link

getAppLaunchNotification not implemented in iOS #198

Closed lachezartodorov closed 10 months ago

lachezartodorov commented 10 months ago

Looks like the getAppLaunchNotification method is missing implementation in iOS and this just breaks the app on multiplatform applications. On the other side ... if it's implemented only in Android, it's totally useless for multiplatform use, with is the main purpose of Flutter. Anyway, giving some details:

Platform: iOS clevertap_plugin: 1.8.1 CleverTap-iOS-SDK: 5.1.2

IMG_1545711703A9-1

shivamsharma2710 commented 10 months ago

Hi @lachezartodorov,

The getAppLaunchNotification() method is only available for Android; we intentionally do not support it for the iOS platform. Instead, to manage notification clicks on iOS, you can depend on the pushClickedPayloadReceived handler regardless of whether the app is in the foreground, background, or has been terminated (killed).

If you refer to our documentation, you will find that this information is already documented. Be sure to implement a platform check before using the getAppLaunchNotification() method.

lachezartodorov commented 10 months ago

It would be great if you include the check in the documentation. It will make things more clear. I falled back to getAppLaunchNotification method, because for some reason pushClickedPayloadReceived doesn't get called on app launch in iOS.

shivamsharma2710 commented 10 months ago

Hi @lachezartodorov

Yes, documentation feedback has been taken into account, and we are working on improving it. As for the issue with pushClickedPayloadReceived not getting called on app launch in iOS, are you still experiencing this problem?

shivamsharma2710 commented 10 months ago

@lachezartodorov, if you are still experiencing the pushClickedPayloadReceived issue in iOS, please create a separate ticket for it.

Closing this ticket for now. Feel free to reach out, if you need further assistance.