clevertap-flutter
clevertap-flutter copied to clipboard
pushClickedPayloadReceived doesn't get called on app launch in iOS
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
Forgot to mention, it is happening on iOS
i am also having the same issue
@rwrz @Inshaf111 can you please share the CT Flutter SDK version that you are using?
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.
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
@nishant-clevertap any update on this?
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.
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: @.***>
Hi @Inshaf111 Can you connect with our support team for this, they will help you to review your implementation and clear your doubts.