In-App Message not showing in the app

Hi All,

We are able to get the in-app messages when we send message from dash-board.

But we run the below curl statement not able to see the in-app message on the screen.

Ex:
curl https://go.urbanairship.com/api/push -X POST -u "xxxx:xxxx" -H "Accept: application/vnd.urbanairship+json; version=3" -H "Content-Type: application/json" -d '{"audience": "all","notification": { "alert" : "In app message " }, "in_app": { "alert": "This part appears in-app! ","display_type": "banner","display": {"position": "top","duration": 2}, "actions":{"share": "this is the best app ever."}}, "device_types": "all"}'
Result:
{"ok":true,"operation_id":"014652c1-7363-4316-bf18-dc208a9786e9","push_ids":["6aee58fd-c451-42d5-b17b-d111958ad308"],"message_ids":[],"content_urls":[]}

Can you provide the details, how to see the in-app message on the screen through curl statement

 

Didn't find what you were looking for?

New post

Comments

4 comments

  • Hi Srinivas,

    Try setting device_types to ["ios", "android"]

    The reason for this is that in-app messages is not supported on all platforms, and it may be invalidating the in-app portion of your payload because the request is asking it to send in-app messages to platforms that do not support this feature.

    Thank you,
    Sean Conlin
    Urban Airship Technical Support
    Portland, Oregon

    0
  • I run the below curl statement based on your suggestions. Still I am not getting in-app message
    Ex:
    curl https://go.urbanairship.com/api/push -X POST -u "XXXXX:XXXXXXX" -H "Accept: application/vnd.urbanairship+json; version=3" -H "Content-Type: application/json" -d '{"audience": "all","device_types": ["ios","android"], "notification": { "alert" : "In app message on Thursday" }, "in_app": { "alert": "This part appears in-app!","display_type": "banner","display": {"position": "top"}, "actions":{"share": "Thursday beauty booking is the best app ever."}}}'

    0
  • I am having the same issue.  I can get a lockscreen notification to display, but not an in-app notification.  I have tried using the message composer (https://go.urbanairship.com/apps/FFIfROAkQJ66ntvrhap9Fg/composer/nupw/) as well as an POST request through a REST client but neither have worked for me. Are there any settings that have to be modified in order to get in-app notifications?

    0
  • I know this was posted a long while ago, but was there ever a resolution to this? I'm currently experiencing this problem. I'm using the react-native-module. Everything works fine on iOS. I'm getting the notification on Android, but not the in-app message on Android. Tried via the message composer as well as via a REST API.

    1

Please sign in to leave a comment.