clevertap-flutter icon indicating copy to clipboard operation
clevertap-flutter copied to clipboard

pushClickedPayloadReceived doesn't get called on app launch in iOS

Open rwrz opened this issue 1 year ago • 9 comments

When I send a push using the Deeplink/URL option, it works for me using the getInitialUrl, but when sending a key/value together with the push, and the App is killed, the pushClickedPayloadReceived doesn't trigger. OR if it triggers, the payload is not the same as when the App is in the foreground (since I can't debug the App opening from a notification).

Seems the payload is there, but for some reason it is not triggering the pushClickedPayloadReceived. Maybe a race condition?

Thanks

rwrz avatar Jan 19 '24 19:01 rwrz

Forgot to mention, it is happening on iOS

rwrz avatar Jan 22 '24 17:01 rwrz

i am also having the same issue

Inshaf111 avatar Jan 29 '24 12:01 Inshaf111

@rwrz @Inshaf111 can you please share the CT Flutter SDK version that you are using?

darshanclevertap avatar Jan 29 '24 13:01 darshanclevertap

Hi @rwrz @Inshaf111 I have tested this on our sample app, where pushClickedPayloadReceived is getting called on killed state also. Can you try updating any text or showing alert on app launch screen with deeplink value or custom key-value received inside pushClickedPayloadReceived method to confirm it is getting called even in killed state or not, as debugging in killed state with push deeplink is difficult.

Let me know if this works or not.

nishant-clevertap avatar Jan 30 '24 13:01 nishant-clevertap

Hi @nishant-clevertap, i tried it it doesnt get called, also i am checking through xcode device logs with certain unique print names stills its not printing at all

i am using Flutter - clevertap_plugin: 1.7.0 current flutter version info Flutter 3.16.8 • channel stable Framework • revision 67457e669f (13 days ago) • 2024-01-16 16:22:29 -0800 Engine • revision 6e2ea58a5c Tools • Dart 3.2.5 • DevTools 2.28.5

Inshaf111 avatar Feb 01 '24 05:02 Inshaf111

@nishant-clevertap any update on this?

Inshaf111 avatar Feb 05 '24 11:02 Inshaf111

Hi @Inshaf111 Is this issue resolved for you? If no and you are using Firebase along with our SDK, try manual integration and using method channel in didReceiveNotificationResponse method to pass data to dart side.

nishant-clevertap avatar Mar 28 '24 11:03 nishant-clevertap

Hi Nishant,

I am working on it, have some questions and it would be better if anyone of your tech team to review my implementation and have a feedback. Can we have a call tomorrow morning? So we i can walkthrough the code.

Thanks, Inshaf

On Thu, 28 Mar 2024 at 3:35 PM nishant-clevertap @.***> wrote:

Hi @Inshaf111 https://github.com/Inshaf111 Is this issue resolved for you? If no and you are using Firebase along with our SDK, try manual integration and using method channel in didReceiveNotificationResponse method to pass data to dart side.

— Reply to this email directly, view it on GitHub https://github.com/CleverTap/clevertap-flutter/issues/212#issuecomment-2024971010, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXY6QCF2IAOCVCOFKCPVTY2P6AHAVCNFSM6AAAAABCCOR7P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUHE3TCMBRGA . You are receiving this because you were mentioned.Message ID: @.***>

Inshaf111 avatar Mar 28 '24 17:03 Inshaf111

Hi @Inshaf111 Can you connect with our support team for this, they will help you to review your implementation and clear your doubts.

nishant-clevertap avatar Mar 29 '24 04:03 nishant-clevertap