customerio / customerio-expo-plugin

MIT License
11 stars 9 forks source link

Push notif message not displayed an android, when deeplink is added #134

Closed Samox closed 7 months ago

Samox commented 7 months ago

Hello, When I add a deeplink on the push notification, on android I only see the title of the notif, the message does not appear. If I remove the deeplink, it works well.

I have tested it on on OPPO and One Plus 6, on android 13. It works perfectly on ios though.

  "customerio-expo-plugin": "^1.0.0-beta.15",
  "customerio-reactnative": "^3.5.2",
  "expo": "^50.0.14",

Do you know how I could debug this ?

Shahroz16 commented 7 months ago

Hey @Samox, thank you for reaching out can you please provide more information on how you are sending push notifications, and what the payload looks like?

Samox commented 7 months ago

I use the standard push notif.

CleanShot 2024-03-29 at 18 00 15@2x

The deeplink: (i tried with https://google.com and some real deeplink of my app) CleanShot 2024-03-29 at 18 06 39@2x

And when I add the deeplink, the notif is displayed like this CleanShot 2024-03-29 at 18 04 26@2x

(also, sometimes during my test, the first time I send a pushnotif, the body is not displayed, then on the second test it is displayed. But I cannot reproduced consistently. When I add the deeplink though there is always the bug)

Shahroz16 commented 7 months ago

@Samox thanks for providing more details, are you using any other push services in your application?

Samox commented 7 months ago

Yes, we use intercom as well 😬

"@intercom/intercom-react-native": "^6.2.0",

Shahroz16 commented 7 months ago

That must be it! You can find more about how to handle multiple push services here.

If you want to go with option 2, use android.setHighPriorityPushHandler it's in the config in Expo SDK that you can utilize.

Samox commented 7 months ago

Option 2 works like a charm ! I completely missed that documentation. It would be nice in the Expo Getting Started as well :)

Shahroz16 commented 7 months ago

Awesome, noted the recommendation as well.