-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pinpoint: Can't move to DeepLink page #2326
Comments
I was able to reproduce this issue. It's important that you fire the push notification while the app is open, because if you fire the notification before opening it the deeplink will work as expected. Also, I was only able to receive notifications when using Pinpoint instead of FCM; probably just a feature of the sample app. Next, by setting the developer option to wait for debugger when starting to open an app, I was able to set a breakpoint in the In both of the other scenarios (app open -> send&click message, and app force closed -> send&click message) |
Workaround: add
after This will not contribute to Pinpoint campaign tracking. I am unsure if it will work if provided a deeplink that doesn't look like |
Hmm actually this might be solved if we also solve #2762, it seems like a |
@changxu0306 Are you initializing If the application is closed, the BroadcastReceiver (future release will be an Activity) is getting the notification bundle, but it is unable to properly route because To fix this, Pinpoint initialization should be completed in a custom |
Documentation has been updated to recommend configuring from Application class instead of Activity. |
Describe the bug
The source code used is here
In general, DeepLink notification works well when the users receive push notification while the application is in the background.
But DeepLink notification doesn't work sometimes as below:
To Reproduce
Receive Push Notification which contains deeplink in foreground -> Press Home Button -> Press Recent Key -> Kill the application -> Swipe down notification center -> Click the push notification -> Deeplink isn't opened
(even
onReceive()
atPinpointNotificationReceiver
isn't called)In order to get notification in foreground, I wrote the code below so the application can receive notifications in foreground:
the example of Deeplink scheme and host I used in the video
pinpoint://deeplink/page1?custom=babo
It works well in normal situation. But when I force to kill the application and touch the notification, it doesn't work well.
The following are some of the things worth paying attention to:
Normal Log
Error Log
It starts
FirebaseInitProvider
As I've debugged it,
onReceive
method atPinpointNotificationReceiver
class wasn't called after app was killed.That's why NotificationClient can't open DeepLink.
I think you may start from this point.
Which AWS service(s) are affected?
Amazon Pinpoint v2.16
The text was updated successfully, but these errors were encountered: